Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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.001294/0.001294, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.00148/0.00148, allocations: 219.1 kB / 23.01 MB, free: 4.609 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.439/1.439, allocations: 230.6 MB / 256.8 MB, free: 8 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.241/3.241, allocations: 0.505 GB / 0.8108 GB, free: 22 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.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") [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.001948/0.001948, allocations: 74.72 kB / 1.178 GB, free: 16.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3545, allocations: 180.2 MB / 1.354 GB, free: 7.941 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006156/0.3607, allocations: 3.984 MB / 1.358 GB, free: 3.941 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003242/0.3639, allocations: 1.835 MB / 1.36 GB, free: 2.098 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.3641, allocations: 7.938 kB / 1.36 GB, free: 2.09 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.3657, allocations: 0.5137 MB / 1.36 GB, free: 1.574 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005654/0.3663, allocations: 226.9 kB / 1.36 GB, free: 1.352 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005369/0.3668, allocations: 210 kB / 1.361 GB, free: 1.148 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0006022/0.3674, allocations: 474.4 kB / 1.361 GB, free: 0.6836 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005664/0.368, allocations: 301.3 kB / 1.361 GB, free: 392 kB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003175/0.3683, allocations: 195.4 kB / 1.362 GB, free: 196 kB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004617/0.3687, allocations: 235.2 kB / 1.362 GB, free: 15.96 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.3688, allocations: 31.94 kB / 1.362 GB, free: 15.93 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004694/0.3693, allocations: 247.5 kB / 1.362 GB, free: 15.69 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.3694, allocations: 135.6 kB / 1.362 GB, free: 15.55 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.3696, allocations: 171.1 kB / 1.362 GB, free: 15.39 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.3703, allocations: 0.502 MB / 1.363 GB, free: 14.88 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3703, allocations: 0 / 1.363 GB, free: 14.88 MB / 1.061 GB Notification: Performance of FrontEnd: time 9.11e-07/0.3703, allocations: 0 / 1.363 GB, free: 14.88 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.3703, allocations: 3.938 kB / 1.363 GB, free: 14.88 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001106/0.3714, allocations: 0.5674 MB / 1.363 GB, free: 14.28 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3714, allocations: 12.03 kB / 1.363 GB, free: 14.27 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008924/0.3723, allocations: 132.6 kB / 1.364 GB, free: 14.14 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.3727, allocations: 241.9 kB / 1.364 GB, free: 13.88 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.3728, allocations: 21.03 kB / 1.364 GB, free: 13.86 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.3728, allocations: 28.38 kB / 1.364 GB, free: 13.83 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.3735, allocations: 467.7 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3735, allocations: 4 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/0.3736, allocations: 15.98 kB / 1.364 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-05/0.3736, allocations: 32.58 kB / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005202/0.3741, allocations: 322.3 kB / 1.365 GB, free: 12.97 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.3766, allocations: 2.139 MB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.3769, allocations: 166.7 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.3771, allocations: 96.8 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.3772, allocations: 0 / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3772, allocations: 38.56 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.3772, allocations: 0 / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0005805/0.3778, allocations: 222.2 kB / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.3778, allocations: 59.59 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.3781, allocations: 269.9 kB / 1.368 GB, free: 9.746 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.3782, allocations: 25.7 kB / 1.368 GB, free: 9.715 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.3783, allocations: 216.2 kB / 1.368 GB, free: 9.5 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.2e-05/0.3784, allocations: 47.62 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.514e-05/0.3784, allocations: 53.89 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001933/0.3786, allocations: 334.8 kB / 1.368 GB, free: 9.055 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.3787, allocations: 60.44 kB / 1.368 GB, free: 8.996 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.3789, allocations: 145.2 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.3792, allocations: 220.9 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3792, allocations: 0 / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000429/0.3796, allocations: 262.2 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3796, allocations: 9.875 kB / 1.369 GB, free: 8.289 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3797, allocations: 4 kB / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.3798, allocations: 24.84 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.38, allocations: 55.91 kB / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.3812, allocations: 1.315 MB / 1.37 GB, free: 6.777 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.3814, allocations: 27.94 kB / 1.37 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.3814, allocations: 16 kB / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.3816, allocations: 177.6 kB / 1.37 GB, free: 6.551 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.3817, allocations: 23.86 kB / 1.37 GB, free: 6.527 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.3817, allocations: 25.77 kB / 1.37 GB, free: 6.496 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.3817, allocations: 4 kB / 1.37 GB, free: 6.492 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.3817, allocations: 0 / 1.37 GB, free: 6.492 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3817, allocations: 0 / 1.37 GB, free: 6.492 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009763/0.3827, allocations: 0.6782 MB / 1.371 GB, free: 5.73 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.3827, allocations: 8.047 kB / 1.371 GB, free: 5.723 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.853e-05/0.3828, allocations: 20 kB / 1.371 GB, free: 5.703 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.162e-05/0.3829, allocations: 36.91 kB / 1.371 GB, free: 5.664 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.3829, allocations: 0 / 1.371 GB, free: 5.664 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.3841, allocations: 1.311 MB / 1.373 GB, free: 4.238 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.3841, allocations: 8.016 kB / 1.373 GB, free: 4.23 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.3844, allocations: 315.6 kB / 1.373 GB, free: 3.887 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-05/0.3845, allocations: 39.78 kB / 1.373 GB, free: 3.848 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.3846, allocations: 7.938 kB / 1.373 GB, free: 3.84 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.3847, allocations: 11.98 kB / 1.373 GB, free: 3.828 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.3848, allocations: 19.92 kB / 1.373 GB, free: 3.809 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.3848, allocations: 11.98 kB / 1.373 GB, free: 3.797 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002035/0.385, allocations: 189.2 kB / 1.373 GB, free: 3.609 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.385, allocations: 0 / 1.373 GB, free: 3.609 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000392/0.3854, allocations: 79.84 kB / 1.373 GB, free: 3.531 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001327/0.3855, allocations: 105.7 kB / 1.373 GB, free: 3.418 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004626/0.386, allocations: 266.4 kB / 1.374 GB, free: 3.145 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.386, allocations: 0 / 1.374 GB, free: 3.145 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.3862, allocations: 179.5 kB / 1.374 GB, free: 2.957 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.3867, allocations: 64.73 kB / 1.374 GB, free: 2.898 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3877, allocations: 0.5963 MB / 1.374 GB, free: 2.254 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.3882, allocations: 0.7948 MB / 1.375 GB, free: 1.434 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.152e-05/0.3882, allocations: 23.44 kB / 1.375 GB, free: 1.41 MB / 1.061 GB Notification: Performance of SimCode: time 3.61e-07/0.3882, allocations: 0 / 1.375 GB, free: 1.41 MB / 1.061 GB Notification: Performance of Templates: time 0.007324/0.3956, allocations: 4.423 MB / 1.379 GB, free: 13 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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: 11.911573744990164]