Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.005298/0.005298, allocations: 101.5 kB / 15.73 MB, free: 5.973 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.001233/0.001233, allocations: 188.6 kB / 16.67 MB, free: 5.895 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.578/2.578, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 67.89 kB / 1.065 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8313/0.8327, allocations: 159.1 MB / 1.221 GB, free: 2.113 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005286/0.838, allocations: 3.283 MB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003466/0.8414, allocations: 2.01 MB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.8417, allocations: 4 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.8428, allocations: 298.8 kB / 1.226 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000617/0.8434, allocations: 234.9 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007189/0.8441, allocations: 289 kB / 1.227 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004876/0.8446, allocations: 414.7 kB / 1.227 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.8449, allocations: 164.3 kB / 1.227 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000236/0.8452, allocations: 163.5 kB / 1.227 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.8455, allocations: 199.3 kB / 1.227 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.935e-05/0.8456, allocations: 24 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004379/0.846, allocations: 267.5 kB / 1.228 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.8462, allocations: 119.6 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.8463, allocations: 143.3 kB / 1.228 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005924/0.8469, allocations: 498.8 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.8469, allocations: 0 / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8469, allocations: 4 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.8469, allocations: 0 / 1.228 GB, free: 10.04 MB / 0.9512 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.001126/0.8481, allocations: 0.5998 MB / 1.229 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.8481, allocations: 15.97 kB / 1.229 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009849/0.8491, allocations: 120.6 kB / 1.229 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.8495, allocations: 280.6 kB / 1.229 GB, free: 8.938 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.8495, allocations: 20.94 kB / 1.229 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.8496, allocations: 40.67 kB / 1.229 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006831/0.8503, allocations: 461 kB / 1.23 GB, free: 8.395 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.8503, allocations: 0 / 1.23 GB, free: 8.395 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.8504, allocations: 8 kB / 1.23 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/0.8505, allocations: 40.53 kB / 1.23 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000588/0.8511, allocations: 365.9 kB / 1.23 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.8536, allocations: 2.222 MB / 1.233 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004028/0.854, allocations: 242.4 kB / 1.233 GB, free: 5.324 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.8542, allocations: 144.8 kB / 1.233 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.8542, allocations: 0 / 1.233 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.8543, allocations: 46.5 kB / 1.233 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=22): time 1.242e-06/0.8543, allocations: 0 / 1.233 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.001712/0.856, allocations: 1.062 MB / 1.234 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.856, allocations: 51.41 kB / 1.234 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002975/0.8563, allocations: 257 kB / 1.234 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.8563, allocations: 33.7 kB / 1.234 GB, free: 3.629 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.8565, allocations: 192.3 kB / 1.234 GB, free: 3.438 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.8565, allocations: 91.27 kB / 1.235 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.8567, allocations: 77.64 kB / 1.235 GB, free: 3.266 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.8568, allocations: 330.8 kB / 1.235 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002754/0.857, allocations: 155.9 kB / 1.235 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.8574, allocations: 249.5 kB / 1.235 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005523/0.8579, allocations: 418.8 kB / 1.236 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.8579, allocations: 4 kB / 1.236 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001154/0.8591, allocations: 0.6013 MB / 1.236 GB, free: 1.445 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.8591, allocations: 4 kB / 1.236 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.8591, allocations: 4 kB / 1.236 GB, free: 1.438 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006552/0.8598, allocations: 184.8 kB / 1.237 GB, free: 1.254 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.8601, allocations: 63.89 kB / 1.237 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002781/0.8629, allocations: 2.489 MB / 1.239 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.8633, allocations: 24 kB / 1.239 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.8633, allocations: 16 kB / 1.239 GB, free: 14.52 MB / 0.9669 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.0001741/0.8635, allocations: 166.2 kB / 1.239 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.996e-05/0.8635, allocations: 31.8 kB / 1.239 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005305/0.864, allocations: 355.5 kB / 1.24 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.8641, allocations: 4 kB / 1.24 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.8641, allocations: 0 / 1.24 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.8641, allocations: 3.938 kB / 1.24 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009972/0.8651, allocations: 0.8132 MB / 1.24 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.8651, allocations: 4 kB / 1.24 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/0.8655, allocations: 71.94 kB / 1.24 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.8655, allocations: 4 kB / 1.24 GB, free: 13 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.8655, allocations: 12.05 kB / 1.24 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.8655, allocations: 11.94 kB / 1.24 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8655, allocations: 0 / 1.24 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007242/0.8662, allocations: 0.6149 MB / 1.241 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.8664, allocations: 129 kB / 1.241 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.693e-05/0.8664, allocations: 8 kB / 1.241 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.8666, allocations: 19.98 kB / 1.241 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.93e-05/0.8667, allocations: 15.92 kB / 1.241 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.8667, allocations: 8 kB / 1.241 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002132/0.8669, allocations: 188.5 kB / 1.241 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.8669, allocations: 0 / 1.241 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000393/0.8673, allocations: 84 kB / 1.241 GB, free: 11.89 MB / 0.9669 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.0001659/0.8675, allocations: 123.1 kB / 1.242 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008767/0.8684, allocations: 0.5184 MB / 1.242 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.8684, allocations: 0 / 1.242 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.8685, allocations: 139.9 kB / 1.242 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.869, allocations: 65.84 kB / 1.242 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.8704, allocations: 0.8396 MB / 1.243 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.8707, allocations: 0.7989 MB / 1.244 GB, free: 9.336 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002071/0.8709, allocations: 74.91 kB / 1.244 GB, free: 9.262 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.806e-05/0.871, allocations: 23.44 kB / 1.244 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.871, allocations: 0 / 1.244 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of Templates: time 0.007529/0.8785, allocations: 4.211 MB / 1.248 GB, free: 5.051 MB / 0.9669 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches