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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.331/2.331, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001235, allocations: 179.4 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 223.2 MB / 0.7948 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009288/0.0009288, allocations: 94.81 kB / 0.9346 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003425, allocations: 7 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2934, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2449/0.5384, allocations: 179.9 MB / 1.399 GB, free: 14.13 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5387, allocations: 95.94 kB / 1.399 GB, free: 14.04 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.05197/0.5907, allocations: 21.25 MB / 1.419 GB, free: 8.57 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5908, allocations: 3.938 kB / 1.419 GB, free: 8.566 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.261e-05/0.5908, allocations: 4 kB / 1.419 GB, free: 8.562 MB / 0.9167 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.001162/0.592, allocations: 0.5729 MB / 1.42 GB, free: 7.938 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.592, allocations: 12.03 kB / 1.42 GB, free: 7.926 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.593, allocations: 111.5 kB / 1.42 GB, free: 7.816 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005528/0.5936, allocations: 286.6 kB / 1.42 GB, free: 7.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.5937, allocations: 20.56 kB / 1.42 GB, free: 7.48 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.041e-05/0.5937, allocations: 39.86 kB / 1.42 GB, free: 7.441 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006657/0.5944, allocations: 421.1 kB / 1.421 GB, free: 6.992 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.5944, allocations: 0 / 1.421 GB, free: 6.992 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.5945, allocations: 16 kB / 1.421 GB, free: 6.977 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-05/0.5945, allocations: 28.53 kB / 1.421 GB, free: 6.949 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005293/0.5951, allocations: 349.9 kB / 1.421 GB, free: 6.609 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002615/0.5977, allocations: 2.203 MB / 1.423 GB, free: 4.203 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.5981, allocations: 267 kB / 1.424 GB, free: 3.934 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.5982, allocations: 4.188 kB / 1.424 GB, free: 3.93 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.5982, allocations: 38.69 kB / 1.424 GB, free: 3.883 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.5982, allocations: 0 / 1.424 GB, free: 3.883 MB / 0.9167 GB Notification: Performance of matching and sorting (n=23): time 0.001993/0.6002, allocations: 1.047 MB / 1.425 GB, free: 2.77 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.6003, allocations: 55.36 kB / 1.425 GB, free: 2.703 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002853/0.6006, allocations: 232 kB / 1.425 GB, free: 2.469 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.6006, allocations: 25.7 kB / 1.425 GB, free: 2.438 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.6008, allocations: 188 kB / 1.425 GB, free: 2.25 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.841e-05/0.6009, allocations: 82.84 kB / 1.425 GB, free: 2.168 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-05/0.6009, allocations: 8 kB / 1.425 GB, free: 2.16 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.601, allocations: 334.8 kB / 1.426 GB, free: 1.824 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.6013, allocations: 147.9 kB / 1.426 GB, free: 1.68 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.6016, allocations: 225.3 kB / 1.426 GB, free: 1.426 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.6019, allocations: 194.7 kB / 1.426 GB, free: 1.238 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6019, allocations: 0 / 1.426 GB, free: 1.238 MB / 0.9167 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001087/0.603, allocations: 0.5757 MB / 1.427 GB, free: 0.6523 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.6031, allocations: 4 kB / 1.427 GB, free: 0.6484 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.6031, allocations: 7.953 kB / 1.427 GB, free: 0.6406 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006503/0.6037, allocations: 184.9 kB / 1.427 GB, free: 468 kB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.604, allocations: 63.91 kB / 1.427 GB, free: 404 kB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6107/1.215, allocations: 2.332 MB / 1.429 GB, free: 188.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/1.215, allocations: 20.7 kB / 1.429 GB, free: 188.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/1.215, allocations: 19.66 kB / 1.429 GB, free: 188.9 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002018/1.215, allocations: 163.9 kB / 1.429 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.184e-05/1.216, allocations: 23.88 kB / 1.429 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006285/1.216, allocations: 351.7 kB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/1.216, allocations: 2.719 kB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/1.216, allocations: 0 / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/1.216, allocations: 9.469 kB / 1.43 GB, free: 188.7 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/1.217, allocations: 0.8072 MB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.217, allocations: 1.125 kB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/1.218, allocations: 78.61 kB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/1.218, allocations: 2.688 kB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/1.218, allocations: 11.73 kB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.218, allocations: 1.281 kB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/1.218, allocations: 1.312 kB / 1.431 GB, free: 188.4 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/1.219, allocations: 0.6338 MB / 1.431 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/1.219, allocations: 127.9 kB / 1.431 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/1.219, allocations: 7.812 kB / 1.431 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/1.219, allocations: 12.58 kB / 1.431 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.845e-05/1.219, allocations: 19.91 kB / 1.431 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/1.219, allocations: 6.531 kB / 1.431 GB, free: 188.1 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.00016/1.219, allocations: 176.7 kB / 1.432 GB, free: 188 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.21e-07/1.219, allocations: 3.156 kB / 1.432 GB, free: 188 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004737/1.22, allocations: 99.19 kB / 1.432 GB, free: 188 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001742/1.22, allocations: 123.8 kB / 1.432 GB, free: 187.9 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008975/1.221, allocations: 0.5292 MB / 1.432 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.221, allocations: 0 / 1.432 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002043/1.221, allocations: 149.4 kB / 1.432 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/1.221, allocations: 54.75 kB / 1.432 GB, free: 187.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/1.223, allocations: 1.004 MB / 1.433 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/1.223, allocations: 0.7984 MB / 1.434 GB, free: 186.6 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002461/1.224, allocations: 75.64 kB / 1.434 GB, free: 186.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.438e-05/1.224, allocations: 22.78 kB / 1.434 GB, free: 186.6 MB / 0.9167 GB Notification: Performance of SimCode: time 9.22e-07/1.224, allocations: 1.188 kB / 1.434 GB, free: 186.6 MB / 0.9167 GB Notification: Performance of Templates: time 0.008745/1.232, allocations: 3.644 MB / 1.438 GB, free: 186.5 MB / 0.9167 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","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches