Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dynRC.i.1.|dynRC.i.2.|dynRL.i.1.|dynRL.i.2.|dynRC.v.1.|dynRC.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001553, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.001676/0.001676, allocations: 187 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 63.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9455/0.9471, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005202/0.9524, allocations: 3.271 MB / 1.092 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003614/0.956, allocations: 2.018 MB / 1.094 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.9563, allocations: 4.594 kB / 1.094 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009916/0.9573, allocations: 294.2 kB / 1.094 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006936/0.958, allocations: 235.7 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009028/0.9589, allocations: 289.4 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005963/0.9595, allocations: 408.8 kB / 1.095 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004384/0.96, allocations: 204.5 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.9603, allocations: 164.3 kB / 1.095 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.9607, allocations: 198.7 kB / 1.095 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.9608, allocations: 23.78 kB / 1.096 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006108/0.9614, allocations: 265.2 kB / 1.096 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.9616, allocations: 121.5 kB / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001879/0.9618, allocations: 151.8 kB / 1.096 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007902/0.9626, allocations: 493.6 kB / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.9626, allocations: 0.6094 kB / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.034e-06/0.9626, allocations: 1.375 kB / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.406e-05/0.9626, allocations: 0 / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001128/0.9638, allocations: 0.5978 MB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.9638, allocations: 9.188 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.9649, allocations: 115.6 kB / 1.097 GB, free: 228 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.9653, allocations: 284 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.9653, allocations: 19.2 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.9655, allocations: 38.78 kB / 1.098 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008886/0.9664, allocations: 461.2 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.9664, allocations: 5.641 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.9665, allocations: 7.594 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.9666, allocations: 40.67 kB / 1.098 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007379/0.9674, allocations: 365.3 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.9702, allocations: 2.219 MB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005112/0.9708, allocations: 262.8 kB / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.971, allocations: 161 kB / 1.101 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.9711, allocations: 2.469 kB / 1.101 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.9711, allocations: 44.97 kB / 1.101 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/0.9711, allocations: 0 / 1.101 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002117/0.9733, allocations: 1.057 MB / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.9733, allocations: 58.16 kB / 1.102 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.9737, allocations: 254 kB / 1.102 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.17e-05/0.9738, allocations: 32.5 kB / 1.102 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.9739, allocations: 185.6 kB / 1.103 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 8.28e-05/0.974, allocations: 81.89 kB / 1.103 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.9742, allocations: 73.56 kB / 1.103 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.9743, allocations: 338.2 kB / 1.103 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.9747, allocations: 157.9 kB / 1.103 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.9751, allocations: 239.4 kB / 1.103 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007613/0.9758, allocations: 416.6 kB / 1.104 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.9758, allocations: 0.5 kB / 1.104 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001421/0.9773, allocations: 0.6032 MB / 1.104 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.9773, allocations: 7.141 kB / 1.104 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.9773, allocations: 2.469 kB / 1.104 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007342/0.9781, allocations: 192.8 kB / 1.105 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.9784, allocations: 62.14 kB / 1.105 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003091/0.9815, allocations: 2.494 MB / 1.107 GB, free: 9.469 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004136/0.9819, allocations: 27.41 kB / 1.107 GB, free: 9.461 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.982, allocations: 15.72 kB / 1.107 GB, free: 9.457 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.9822, allocations: 177.8 kB / 1.107 GB, free: 9.305 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.847e-05/0.9823, allocations: 27.55 kB / 1.107 GB, free: 9.289 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006148/0.9829, allocations: 354 kB / 1.108 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.9829, allocations: 2.844 kB / 1.108 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.9829, allocations: 0 / 1.108 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.9829, allocations: 1.359 kB / 1.108 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.9841, allocations: 0.8159 MB / 1.108 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.9841, allocations: 0.5625 kB / 1.108 GB, free: 8.633 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.9845, allocations: 72.81 kB / 1.108 GB, free: 8.629 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.9845, allocations: 2.781 kB / 1.108 GB, free: 8.629 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.9846, allocations: 7.734 kB / 1.108 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.9846, allocations: 2.219 kB / 1.108 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.9846, allocations: 1.969 kB / 1.109 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008606/0.9855, allocations: 0.6132 MB / 1.109 GB, free: 8.293 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.9856, allocations: 129.2 kB / 1.109 GB, free: 8.176 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.166e-05/0.9857, allocations: 8.906 kB / 1.109 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.9859, allocations: 11.06 kB / 1.109 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.017e-05/0.986, allocations: 19.56 kB / 1.109 GB, free: 8.164 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.986, allocations: 5.969 kB / 1.109 GB, free: 8.164 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002507/0.9863, allocations: 191.8 kB / 1.109 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9863, allocations: 3.938 kB / 1.109 GB, free: 8.047 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005021/0.9868, allocations: 94.77 kB / 1.11 GB, free: 8.031 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001771/0.987, allocations: 110.2 kB / 1.11 GB, free: 7.934 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001066/0.988, allocations: 0.5336 MB / 1.11 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.9881, allocations: 1.312 kB / 1.11 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002456/0.9883, allocations: 153.1 kB / 1.11 GB, free: 7.621 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.9888, allocations: 63.55 kB / 1.11 GB, free: 7.594 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.9905, allocations: 0.8756 MB / 1.111 GB, free: 7.043 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.9909, allocations: 0.7934 MB / 1.112 GB, free: 6.336 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.991, allocations: 27.36 kB / 1.112 GB, free: 6.328 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/0.991, allocations: 0 / 1.112 GB, free: 6.328 MB / 0.8731 GB Notification: Performance of Templates: time 0.01138/1.002, allocations: 4.565 MB / 1.116 GB, free: 5.953 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches