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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001539/0.001539, allocations: 105 kB / 16.41 MB, free: 6.465 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.001475/0.001476, allocations: 187 kB / 17.34 MB, free: 5.719 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.51/1.51, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.73/2.73, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.001551, allocations: 64.12 kB / 1.055 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9412/0.9428, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.00501/0.9478, allocations: 3.08 MB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003173/0.9511, allocations: 1.905 MB / 1.213 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.9512, allocations: 7.938 kB / 1.213 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.9523, allocations: 282.8 kB / 1.214 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004692/0.9527, allocations: 191.1 kB / 1.214 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.9534, allocations: 251.2 kB / 1.214 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.9538, allocations: 315 kB / 1.214 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003508/0.9542, allocations: 192.7 kB / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.9544, allocations: 139.5 kB / 1.215 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002877/0.9547, allocations: 147.4 kB / 1.215 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/0.9547, allocations: 20 kB / 1.215 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005947/0.9553, allocations: 403.2 kB / 1.215 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.9554, allocations: 83.78 kB / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.9556, allocations: 119.4 kB / 1.215 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006756/0.9562, allocations: 488.5 kB / 1.216 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.9563, allocations: 0 / 1.216 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9563, allocations: 0 / 1.216 GB, free: 6.039 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.9563, allocations: 4 kB / 1.216 GB, free: 6.035 MB / 0.9356 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.0009011/0.9572, allocations: 0.5614 MB / 1.216 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.9572, allocations: 8.031 kB / 1.216 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008386/0.9581, allocations: 108.5 kB / 1.216 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.9584, allocations: 278.2 kB / 1.217 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.9585, allocations: 12.81 kB / 1.217 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/0.9585, allocations: 16.38 kB / 1.217 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005422/0.959, allocations: 353.4 kB / 1.217 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.9591, allocations: 0 / 1.217 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.9591, allocations: 12 kB / 1.217 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.317e-05/0.9592, allocations: 24.42 kB / 1.217 GB, free: 4.574 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004695/0.9596, allocations: 293.5 kB / 1.217 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002164/0.9618, allocations: 1.737 MB / 1.219 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000481/0.9623, allocations: 318.2 kB / 1.219 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.9625, allocations: 105.6 kB / 1.219 GB, free: 1.926 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/0.9626, allocations: 96.97 kB / 1.22 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.9626, allocations: 34.56 kB / 1.22 GB, free: 1.77 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.9626, allocations: 0 / 1.22 GB, free: 1.77 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23): time 0.00254/0.9652, allocations: 0.9703 MB / 1.221 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.9653, allocations: 85.05 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.9655, allocations: 203.8 kB / 1.221 GB, free: 456 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.9655, allocations: 37.83 kB / 1.221 GB, free: 412 kB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.9656, allocations: 180 kB / 1.221 GB, free: 224 kB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/0.9657, allocations: 74.86 kB / 1.221 GB, free: 148 kB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.966e-05/0.9658, allocations: 61.69 kB / 1.221 GB, free: 80 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.966, allocations: 326.8 kB / 1.221 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.9662, allocations: 131.9 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.9664, allocations: 213.2 kB / 1.222 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000465/0.9669, allocations: 373.4 kB / 1.222 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.9669, allocations: 4 kB / 1.222 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00086/0.9678, allocations: 0.5042 MB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.9678, allocations: 8 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.9678, allocations: 4 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005188/0.9684, allocations: 151.6 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.9686, allocations: 63.91 kB / 1.223 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.972, allocations: 4.178 MB / 1.227 GB, free: 9.711 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.9722, allocations: 27.92 kB / 1.227 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.9722, allocations: 15.98 kB / 1.227 GB, free: 9.668 MB / 0.9512 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.0002052/0.9725, allocations: 169.8 kB / 1.227 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.9725, allocations: 15.81 kB / 1.227 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008754/0.9734, allocations: 478.4 kB / 1.228 GB, free: 8.996 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.9734, allocations: 4 kB / 1.228 GB, free: 8.992 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.9734, allocations: 4 kB / 1.228 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.9735, allocations: 0 / 1.228 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.9751, allocations: 1.009 MB / 1.229 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.9751, allocations: 0 / 1.229 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.9753, allocations: 35.92 kB / 1.229 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004404/0.9757, allocations: 147.6 kB / 1.229 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.9757, allocations: 8 kB / 1.229 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003186/0.9789, allocations: 4.147 MB / 1.233 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.979, allocations: 8.156 kB / 1.233 GB, free: 3.203 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009028/0.9799, allocations: 0.629 MB / 1.233 GB, free: 2.523 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.98, allocations: 120.9 kB / 1.234 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.304e-05/0.9801, allocations: 7.938 kB / 1.234 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.9803, allocations: 15.98 kB / 1.234 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.9804, allocations: 35.81 kB / 1.234 GB, free: 2.328 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.9804, allocations: 16 kB / 1.234 GB, free: 2.312 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001539/0.9806, allocations: 157.5 kB / 1.234 GB, free: 2.16 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9806, allocations: 0 / 1.234 GB, free: 2.16 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005651/0.9812, allocations: 88 kB / 1.234 GB, free: 2.074 MB / 0.9512 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.0002353/0.9814, allocations: 139.1 kB / 1.234 GB, free: 1.926 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001028/0.9824, allocations: 0.5835 MB / 1.235 GB, free: 1.316 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.9825, allocations: 0 / 1.235 GB, free: 1.316 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0005513/0.983, allocations: 403.3 kB / 1.235 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/0.9836, allocations: 39.97 kB / 1.235 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.9848, allocations: 0.6577 MB / 1.236 GB, free: 148 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.9852, allocations: 0.783 MB / 1.236 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.328e-05/0.9853, allocations: 23.44 kB / 1.236 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of SimCode: time 3.41e-07/0.9853, allocations: 3.938 kB / 1.236 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of Templates: time 0.01116/0.9965, allocations: 7.633 MB / 1.244 GB, free: 7.676 MB / 0.9669 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/jenkins1/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