Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001088, allocations: 92.31 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001587, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 223.3 MB / 240 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.711/2.711, allocations: 390.9 MB / 0.666 GB, free: 2.453 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003939/0.0003943, allocations: 8 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8861/0.8865, allocations: 142.4 MB / 0.9544 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.003794/0.8904, allocations: 3.264 MB / 0.9576 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002669/0.8931, allocations: 1.691 MB / 0.9593 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002451/0.8933, allocations: 15.53 kB / 0.9593 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.8936, allocations: 57.41 kB / 0.9593 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000599/0.8942, allocations: 230.9 kB / 0.9596 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.8947, allocations: 193.2 kB / 0.9598 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005876/0.8953, allocations: 0.6347 MB / 0.9604 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005823/0.8959, allocations: 321.3 kB / 0.9607 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.8962, allocations: 198.3 kB / 0.9609 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003098/0.8965, allocations: 214.5 kB / 0.9611 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.8966, allocations: 17.12 kB / 0.9611 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003216/0.8969, allocations: 140.5 kB / 0.9612 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.897, allocations: 96.8 kB / 0.9613 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.507e-05/0.8971, allocations: 99.17 kB / 0.9614 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.8976, allocations: 435.6 kB / 0.9618 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.8976, allocations: 0 / 0.9618 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.294e-06/0.8976, allocations: 0 / 0.9618 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.8976, allocations: 3.938 kB / 0.9618 GB, free: 2.113 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001029/0.8986, allocations: 0.6737 MB / 0.9625 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.8987, allocations: 8.844 kB / 0.9625 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008366/0.8995, allocations: 133.7 kB / 0.9626 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.9, allocations: 365.3 kB / 0.963 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.9, allocations: 20.66 kB / 0.963 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.387e-05/0.9001, allocations: 34.83 kB / 0.963 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008108/0.9009, allocations: 0.5459 MB / 0.9636 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.901, allocations: 12.98 kB / 0.9636 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.901, allocations: 16.95 kB / 0.9636 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.506e-05/0.9011, allocations: 50.5 kB / 0.9636 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000685/0.9018, allocations: 412.1 kB / 0.964 GB, free: 460 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003035/0.9048, allocations: 3.339 MB / 0.9673 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007045/0.9056, allocations: 329.4 kB / 0.9676 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/0.9059, allocations: 185.5 kB / 0.9678 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.9059, allocations: 3.594 kB / 0.9678 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.906, allocations: 35.47 kB / 0.9678 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=26): time 3.607e-06/0.906, allocations: 1.031 kB / 0.9678 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=27): time 0.002162/0.9081, allocations: 1.089 MB / 0.9689 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.9082, allocations: 58.62 kB / 0.9689 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003995/0.9086, allocations: 336.1 kB / 0.9693 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.9087, allocations: 30.48 kB / 0.9693 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.9088, allocations: 242.7 kB / 0.9695 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.751e-05/0.9089, allocations: 98.55 kB / 0.9696 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.909, allocations: 10.47 kB / 0.9696 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.9091, allocations: 346.6 kB / 0.97 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.9094, allocations: 153.2 kB / 0.9701 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.9098, allocations: 299 kB / 0.9704 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.9102, allocations: 194.9 kB / 0.9706 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.9102, allocations: 2.031 kB / 0.9706 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001039/0.9113, allocations: 0.5715 MB / 0.9711 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.9113, allocations: 11.28 kB / 0.9711 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.9113, allocations: 4.906 kB / 0.9711 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.9116, allocations: 94.34 kB / 0.9712 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003448/0.912, allocations: 86.81 kB / 0.9713 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.912, allocations: 10.62 kB / 0.9713 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.9123, allocations: 32.19 kB / 0.9714 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.9123, allocations: 18.38 kB / 0.9714 GB, free: 10.37 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002277/0.9126, allocations: 185.8 kB / 0.9716 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.996e-05/0.9126, allocations: 39.69 kB / 0.9716 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009423/0.9136, allocations: 470.1 kB / 0.972 GB, free: 9.906 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.9136, allocations: 7.094 kB / 0.972 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.9136, allocations: 1.062 kB / 0.972 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.9136, allocations: 4.953 kB / 0.9721 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.9152, allocations: 0.9716 MB / 0.973 GB, free: 9.176 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.9152, allocations: 1.219 kB / 0.973 GB, free: 9.176 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.9154, allocations: 58.98 kB / 0.9731 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002267/0.9157, allocations: 80.02 kB / 0.9731 GB, free: 9.102 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.9157, allocations: 6.125 kB / 0.9731 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.9157, allocations: 6.219 kB / 0.9731 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.9157, allocations: 4.953 kB / 0.9731 GB, free: 9.09 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009166/0.9166, allocations: 0.5484 MB / 0.9737 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.9168, allocations: 142.8 kB / 0.9738 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.865e-05/0.9169, allocations: 6.156 kB / 0.9738 GB, free: 8.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.9171, allocations: 37.28 kB / 0.9739 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.9172, allocations: 18.06 kB / 0.9739 GB, free: 8.543 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.9173, allocations: 9.906 kB / 0.9739 GB, free: 8.539 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002717/0.9175, allocations: 230.3 kB / 0.9741 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9175, allocations: 1.094 kB / 0.9741 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005204/0.9181, allocations: 84.5 kB / 0.9742 GB, free: 8.383 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001737/0.9183, allocations: 113.6 kB / 0.9743 GB, free: 8.281 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001017/0.9193, allocations: 0.6392 MB / 0.9749 GB, free: 7.797 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.9193, allocations: 3.938 kB / 0.9749 GB, free: 7.793 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004975/0.9198, allocations: 443.8 kB / 0.9754 GB, free: 7.395 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007295/0.9205, allocations: 118.9 kB / 0.9755 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.9221, allocations: 0.8643 MB / 0.9763 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005717/0.9227, allocations: 0.8266 MB / 0.9771 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003699/0.9231, allocations: 75.2 kB / 0.9772 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.827e-05/0.9232, allocations: 27.41 kB / 0.9772 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of SimCode: time 7.21e-07/0.9232, allocations: 4 kB / 0.9772 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of Templates: time 0.01241/0.9356, allocations: 4.307 MB / 0.9814 GB, free: 2.926 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches