Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.001185/0.001185, allocations: 107.6 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.001336/0.001336, allocations: 183 kB / 17.34 MB, free: 5.762 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.396/2.396, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.00153, allocations: 63.89 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9278/0.9294, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.006149/0.9356, allocations: 3.079 MB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003766/0.9394, allocations: 1.901 MB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.9396, allocations: 11.88 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.9408, allocations: 278.9 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006504/0.9415, allocations: 199.1 kB / 1.173 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008164/0.9423, allocations: 244.3 kB / 1.173 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005406/0.9429, allocations: 319 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.9433, allocations: 185 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.9436, allocations: 135.5 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/0.944, allocations: 155.4 kB / 1.174 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.408e-05/0.9441, allocations: 20 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006948/0.9448, allocations: 399.2 kB / 1.174 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.9449, allocations: 91.72 kB / 1.174 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.9451, allocations: 123.4 kB / 1.174 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009089/0.946, allocations: 490.8 kB / 1.175 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.946, allocations: 0 / 1.175 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.375e-06/0.946, allocations: 0 / 1.175 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.23e-05/0.946, allocations: 0 / 1.175 GB, free: 12.25 MB / 0.9044 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.001145/0.9472, allocations: 0.5607 MB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.9472, allocations: 12.03 kB / 1.175 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009535/0.9482, allocations: 120.6 kB / 1.175 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.9486, allocations: 270.5 kB / 1.176 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.9487, allocations: 16.81 kB / 1.176 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.211e-05/0.9487, allocations: 16.38 kB / 1.176 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.9493, allocations: 361.4 kB / 1.176 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.9494, allocations: 0 / 1.176 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.9494, allocations: 4 kB / 1.176 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-05/0.9495, allocations: 28.42 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005154/0.95, allocations: 297.4 kB / 1.176 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.9523, allocations: 1.726 MB / 1.178 GB, free: 8.586 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005065/0.9529, allocations: 330.1 kB / 1.178 GB, free: 8.227 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.953, allocations: 108 kB / 1.178 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001185/0.9532, allocations: 96.98 kB / 1.178 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.9532, allocations: 38.56 kB / 1.179 GB, free: 7.957 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.9532, allocations: 0 / 1.179 GB, free: 7.957 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23): time 0.002676/0.9559, allocations: 0.9713 MB / 1.179 GB, free: 6.949 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.472e-05/0.956, allocations: 85.05 kB / 1.18 GB, free: 6.848 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.9563, allocations: 211.7 kB / 1.18 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.9563, allocations: 29.7 kB / 1.18 GB, free: 6.594 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.9564, allocations: 176.4 kB / 1.18 GB, free: 6.418 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.409e-05/0.9565, allocations: 87.27 kB / 1.18 GB, free: 6.332 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.9566, allocations: 57.7 kB / 1.18 GB, free: 6.27 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.9568, allocations: 338.8 kB / 1.18 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.957, allocations: 123.9 kB / 1.181 GB, free: 5.809 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002725/0.9573, allocations: 215.3 kB / 1.181 GB, free: 5.566 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004871/0.9577, allocations: 371.3 kB / 1.181 GB, free: 5.172 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.9578, allocations: 0 / 1.181 GB, free: 5.172 MB / 0.9044 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000932/0.9587, allocations: 0.5113 MB / 1.182 GB, free: 4.645 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.9587, allocations: 8 kB / 1.182 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.9587, allocations: 0 / 1.182 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005531/0.9593, allocations: 151.3 kB / 1.182 GB, free: 4.477 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.9596, allocations: 63.98 kB / 1.182 GB, free: 4.414 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003449/0.963, allocations: 4.194 MB / 1.186 GB, free: 15.88 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.9633, allocations: 20.12 kB / 1.186 GB, free: 15.86 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.9633, allocations: 16 kB / 1.186 GB, free: 15.85 MB / 0.92 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.0002572/0.9636, allocations: 161.7 kB / 1.186 GB, free: 15.68 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.9636, allocations: 23.86 kB / 1.186 GB, free: 15.66 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008832/0.9645, allocations: 478.5 kB / 1.187 GB, free: 15.17 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.9646, allocations: 4 kB / 1.187 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.9646, allocations: 4 kB / 1.187 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.9646, allocations: 4 kB / 1.187 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.9662, allocations: 1.002 MB / 1.188 GB, free: 14.06 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.9662, allocations: 4.25 kB / 1.188 GB, free: 14.06 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.9664, allocations: 31.98 kB / 1.188 GB, free: 14.03 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004559/0.9668, allocations: 155.2 kB / 1.188 GB, free: 13.86 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.9669, allocations: 4 kB / 1.188 GB, free: 13.86 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.9701, allocations: 4.166 MB / 1.192 GB, free: 9.359 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.9701, allocations: 4.031 kB / 1.192 GB, free: 9.355 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.971, allocations: 0.6239 MB / 1.192 GB, free: 8.68 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.9712, allocations: 124.9 kB / 1.193 GB, free: 8.539 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.9712, allocations: 11.94 kB / 1.193 GB, free: 8.527 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.9714, allocations: 19.98 kB / 1.193 GB, free: 8.508 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.536e-05/0.9715, allocations: 23.97 kB / 1.193 GB, free: 8.484 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.9715, allocations: 8 kB / 1.193 GB, free: 8.477 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001689/0.9717, allocations: 160.2 kB / 1.193 GB, free: 8.32 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9717, allocations: 0 / 1.193 GB, free: 8.32 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005776/0.9723, allocations: 83.94 kB / 1.193 GB, free: 8.238 MB / 0.92 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.0002427/0.9726, allocations: 141.3 kB / 1.193 GB, free: 8.09 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001057/0.9736, allocations: 0.5906 MB / 1.194 GB, free: 7.473 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.9736, allocations: 0 / 1.194 GB, free: 7.473 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.9742, allocations: 398.3 kB / 1.194 GB, free: 7.059 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.9747, allocations: 41.88 kB / 1.194 GB, free: 7.02 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.9759, allocations: 0.6784 MB / 1.195 GB, free: 6.293 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.9763, allocations: 0.7792 MB / 1.195 GB, free: 5.488 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.9764, allocations: 27.44 kB / 1.195 GB, free: 5.461 MB / 0.92 GB Notification: Performance of SimCode: time 5.51e-07/0.9765, allocations: 7.875 kB / 1.195 GB, free: 5.453 MB / 0.92 GB Notification: Performance of Templates: time 0.01213/0.9886, allocations: 7.648 MB / 1.203 GB, free: 13.8 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches