Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008644/0.008644, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001986/0.001986, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.687/2.687, allocations: 472.6 MB / 0.7453 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 1.069 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9687/0.9699, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004789/0.9747, allocations: 3.087 MB / 1.229 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003042/0.9778, allocations: 1.92 MB / 1.23 GB, free: 8.516 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.9779, allocations: 4 kB / 1.23 GB, free: 8.512 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009193/0.9789, allocations: 285.6 kB / 1.231 GB, free: 8.234 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004258/0.9793, allocations: 191.2 kB / 1.231 GB, free: 8.047 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005865/0.9799, allocations: 247.2 kB / 1.231 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003376/0.9802, allocations: 318.9 kB / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003375/0.9806, allocations: 189 kB / 1.232 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.9808, allocations: 127.5 kB / 1.232 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.9811, allocations: 147.5 kB / 1.232 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.9811, allocations: 20 kB / 1.232 GB, free: 7.016 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005606/0.9817, allocations: 407.2 kB / 1.232 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.9818, allocations: 87.78 kB / 1.232 GB, free: 6.531 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.9819, allocations: 119.4 kB / 1.233 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000626/0.9825, allocations: 494.8 kB / 1.233 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.361e-06/0.9826, allocations: 3.938 kB / 1.233 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.263e-06/0.9826, allocations: 0 / 1.233 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.9826, allocations: 0 / 1.233 GB, free: 5.93 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008568/0.9834, allocations: 0.5646 MB / 1.234 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.9835, allocations: 12.03 kB / 1.234 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007749/0.9843, allocations: 112.6 kB / 1.234 GB, free: 5.195 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.9846, allocations: 274.1 kB / 1.234 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.9847, allocations: 16.81 kB / 1.234 GB, free: 4.875 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.807e-05/0.9847, allocations: 16.38 kB / 1.234 GB, free: 4.859 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005487/0.9853, allocations: 353.5 kB / 1.234 GB, free: 4.488 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.9853, allocations: 3.938 kB / 1.234 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/0.9853, allocations: 8 kB / 1.234 GB, free: 4.477 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.322e-05/0.9854, allocations: 24.42 kB / 1.234 GB, free: 4.453 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004541/0.9858, allocations: 289.5 kB / 1.235 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.9882, allocations: 1.745 MB / 1.236 GB, free: 2.258 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005723/0.9887, allocations: 322.1 kB / 1.237 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.9889, allocations: 101.7 kB / 1.237 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001422/0.9891, allocations: 93.03 kB / 1.237 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.933e-05/0.9891, allocations: 42.5 kB / 1.237 GB, free: 1.641 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 2.986e-06/0.9891, allocations: 0 / 1.237 GB, free: 1.641 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.002885/0.992, allocations: 0.9565 MB / 1.238 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/0.9921, allocations: 92.97 kB / 1.238 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.9924, allocations: 219.7 kB / 1.238 GB, free: 316 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.9924, allocations: 25.7 kB / 1.238 GB, free: 284 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.9926, allocations: 176.4 kB / 1.238 GB, free: 104 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/0.9927, allocations: 87.27 kB / 1.238 GB, free: 16 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.9928, allocations: 65.62 kB / 1.238 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0003073/0.9932, allocations: 330.8 kB / 1.239 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.9934, allocations: 131.9 kB / 1.239 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.9937, allocations: 206 kB / 1.239 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.9942, allocations: 365.2 kB / 1.239 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.9942, allocations: 0 / 1.239 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009222/0.9952, allocations: 0.5122 MB / 1.24 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.9952, allocations: 8 kB / 1.24 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.9952, allocations: 4 kB / 1.24 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005897/0.9958, allocations: 143.3 kB / 1.24 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.9961, allocations: 64 kB / 1.24 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004094/1, allocations: 4.195 MB / 1.244 GB, free: 9.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/1, allocations: 20.17 kB / 1.244 GB, free: 9.559 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/1, allocations: 15.94 kB / 1.244 GB, free: 9.543 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): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002361/1.001, allocations: 170.2 kB / 1.244 GB, free: 9.367 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.136e-05/1.001, allocations: 19.86 kB / 1.244 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009396/1.002, allocations: 478.6 kB / 1.245 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/1.002, allocations: 4 kB / 1.245 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/1.002, allocations: 3.938 kB / 1.245 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/1.002, allocations: 0 / 1.245 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/1.003, allocations: 1.005 MB / 1.246 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/1.003, allocations: 256 / 1.246 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/1.003, allocations: 47.91 kB / 1.246 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004046/1.004, allocations: 135.3 kB / 1.246 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/1.004, allocations: 11.94 kB / 1.246 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003136/1.007, allocations: 4.16 MB / 1.25 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.007, allocations: 4 kB / 1.25 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008656/1.008, allocations: 0.6299 MB / 1.251 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/1.008, allocations: 121 kB / 1.251 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/1.008, allocations: 11.94 kB / 1.251 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/1.008, allocations: 15.98 kB / 1.251 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/1.008, allocations: 27.88 kB / 1.251 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/1.008, allocations: 8 kB / 1.251 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001642/1.009, allocations: 161.5 kB / 1.251 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/1.009, allocations: 3.938 kB / 1.251 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005409/1.009, allocations: 91.92 kB / 1.251 GB, free: 1.926 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002424/1.009, allocations: 135.1 kB / 1.251 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000987/1.01, allocations: 0.5847 MB / 1.252 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.01, allocations: 0 / 1.252 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0005259/1.011, allocations: 410.2 kB / 1.252 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/1.012, allocations: 45.47 kB / 1.252 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/1.013, allocations: 0.6095 MB / 1.253 GB, free: 48 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/1.013, allocations: 0.7946 MB / 1.254 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001589/1.013, allocations: 66.23 kB / 1.254 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.89e-05/1.013, allocations: 19.44 kB / 1.254 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/1.013, allocations: 0 / 1.254 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of Templates: time 0.008251/1.021, allocations: 4.202 MB / 1.258 GB, free: 10.97 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches