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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002084/0.002084, allocations: 222.9 kB / 23 MB, free: 4.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 230.6 MB / 256.8 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.335/3.335, allocations: 0.5107 GB / 0.8166 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00338/0.00338, allocations: 68 kB / 1.187 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4372/0.4405, allocations: 181.9 MB / 1.365 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005503/0.446, allocations: 3.075 MB / 1.368 GB, free: 10.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003611/0.4497, allocations: 1.885 MB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.4499, allocations: 7.938 kB / 1.369 GB, free: 8.602 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.4509, allocations: 279 kB / 1.37 GB, free: 8.328 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005914/0.4515, allocations: 199 kB / 1.37 GB, free: 8.133 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.4523, allocations: 251.2 kB / 1.37 GB, free: 7.887 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004654/0.4527, allocations: 322.9 kB / 1.37 GB, free: 7.57 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003648/0.4531, allocations: 149.1 kB / 1.371 GB, free: 7.418 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.4534, allocations: 143.5 kB / 1.371 GB, free: 7.277 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003548/0.4538, allocations: 143.4 kB / 1.371 GB, free: 7.137 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/0.4538, allocations: 24 kB / 1.371 GB, free: 7.113 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007218/0.4545, allocations: 379.2 kB / 1.371 GB, free: 6.742 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.4547, allocations: 79.8 kB / 1.371 GB, free: 6.664 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.4548, allocations: 107.5 kB / 1.371 GB, free: 6.559 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0008274/0.4556, allocations: 0.4906 MB / 1.372 GB, free: 6.066 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.4556, allocations: 3.938 kB / 1.372 GB, free: 6.062 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4556, allocations: 4 kB / 1.372 GB, free: 6.059 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.4556, allocations: 3.938 kB / 1.372 GB, free: 6.055 MB / 1.061 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.001037/0.4567, allocations: 498.5 kB / 1.372 GB, free: 5.539 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4567, allocations: 8.031 kB / 1.372 GB, free: 5.531 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008544/0.4576, allocations: 116.6 kB / 1.373 GB, free: 5.418 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.458, allocations: 208.4 kB / 1.373 GB, free: 5.191 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.458, allocations: 12.81 kB / 1.373 GB, free: 5.18 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.251e-05/0.458, allocations: 20.36 kB / 1.373 GB, free: 5.16 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006561/0.4587, allocations: 408.4 kB / 1.373 GB, free: 4.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.4587, allocations: 0 / 1.373 GB, free: 4.73 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/0.4588, allocations: 12 kB / 1.373 GB, free: 4.719 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.045e-05/0.4588, allocations: 20.42 kB / 1.373 GB, free: 4.695 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.4593, allocations: 297.5 kB / 1.373 GB, free: 4.406 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00218/0.4615, allocations: 1.229 MB / 1.375 GB, free: 3.121 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.462, allocations: 244.9 kB / 1.375 GB, free: 2.863 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.4622, allocations: 97.67 kB / 1.375 GB, free: 2.762 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 8.163e-05/0.4622, allocations: 15.98 kB / 1.375 GB, free: 2.746 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.302e-05/0.4623, allocations: 42.5 kB / 1.375 GB, free: 2.695 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.623e-06/0.4623, allocations: 0 / 1.375 GB, free: 2.695 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.002595/0.4649, allocations: 0.9041 MB / 1.376 GB, free: 1.773 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.4649, allocations: 81.11 kB / 1.376 GB, free: 1.676 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.4652, allocations: 214.4 kB / 1.376 GB, free: 1.453 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.4652, allocations: 33.73 kB / 1.376 GB, free: 1.414 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.4654, allocations: 168.5 kB / 1.376 GB, free: 1.242 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.081e-05/0.4654, allocations: 87.27 kB / 1.376 GB, free: 1.156 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.4656, allocations: 61.66 kB / 1.377 GB, free: 1.09 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.4657, allocations: 334.8 kB / 1.377 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.466, allocations: 131.9 kB / 1.377 GB, free: 0.625 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.4662, allocations: 213.2 kB / 1.377 GB, free: 392 kB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005359/0.4668, allocations: 368.4 kB / 1.378 GB, free: 15.99 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4668, allocations: 0 / 1.378 GB, free: 15.99 MB / 1.076 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009528/0.4677, allocations: 0.5129 MB / 1.378 GB, free: 15.46 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.4677, allocations: 4 kB / 1.378 GB, free: 15.46 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4678, allocations: 4 kB / 1.378 GB, free: 15.45 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005489/0.4683, allocations: 147.3 kB / 1.378 GB, free: 15.3 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.4686, allocations: 55.91 kB / 1.378 GB, free: 15.24 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.4722, allocations: 3.938 MB / 1.382 GB, free: 11.05 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.4724, allocations: 19.97 kB / 1.382 GB, free: 11.03 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.4724, allocations: 12 kB / 1.382 GB, free: 11.02 MB / 1.076 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.0002035/0.4726, allocations: 161.8 kB / 1.382 GB, free: 10.85 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.962e-05/0.4727, allocations: 31.8 kB / 1.382 GB, free: 10.82 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000894/0.4736, allocations: 467 kB / 1.383 GB, free: 10.34 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4736, allocations: 4 kB / 1.383 GB, free: 10.34 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4736, allocations: 3.938 kB / 1.383 GB, free: 10.34 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.4736, allocations: 7.984 kB / 1.383 GB, free: 10.33 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.4752, allocations: 0.8864 MB / 1.384 GB, free: 9.367 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4752, allocations: 4 kB / 1.384 GB, free: 9.363 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.4754, allocations: 35.97 kB / 1.384 GB, free: 9.328 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004075/0.4758, allocations: 147.2 kB / 1.384 GB, free: 9.172 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.4758, allocations: 8 kB / 1.384 GB, free: 9.164 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.4791, allocations: 3.895 MB / 1.388 GB, free: 5.012 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4791, allocations: 4.438 kB / 1.388 GB, free: 5.008 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000884/0.48, allocations: 0.6294 MB / 1.388 GB, free: 4.324 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.4801, allocations: 47.88 kB / 1.388 GB, free: 4.277 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.618e-05/0.4802, allocations: 8 kB / 1.388 GB, free: 4.27 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.4804, allocations: 19.97 kB / 1.388 GB, free: 4.25 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.4805, allocations: 27.84 kB / 1.388 GB, free: 4.223 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.4805, allocations: 12 kB / 1.388 GB, free: 4.211 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001629/0.4806, allocations: 152.2 kB / 1.388 GB, free: 4.062 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.4806, allocations: 4 kB / 1.388 GB, free: 4.059 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005439/0.4812, allocations: 91.94 kB / 1.389 GB, free: 3.969 MB / 1.076 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.0002595/0.4814, allocations: 139 kB / 1.389 GB, free: 3.82 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001054/0.4825, allocations: 0.5737 MB / 1.389 GB, free: 3.223 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.227e-06/0.4825, allocations: 0 / 1.389 GB, free: 3.223 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.4831, allocations: 393.1 kB / 1.39 GB, free: 2.812 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/0.4836, allocations: 47.7 kB / 1.39 GB, free: 2.77 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.4848, allocations: 0.6679 MB / 1.39 GB, free: 2.047 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.485, allocations: 173.2 kB / 1.39 GB, free: 1.855 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.439e-05/0.4851, allocations: 23.44 kB / 1.391 GB, free: 1.832 MB / 1.076 GB Notification: Performance of SimCode: time 4.41e-07/0.4851, allocations: 0 / 1.391 GB, free: 1.832 MB / 1.076 GB Notification: Performance of Templates: time 0.01227/0.4973, allocations: 7.805 MB / 1.398 GB, free: 10.03 MB / 1.092 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.363440731074661]