Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.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.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 109.1 kB / 16.41 MB, free: 6.387 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.001133/0.001133, allocations: 187.7 kB / 17.34 MB, free: 5.84 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 472.7 MB / 0.746 GB, free: 476 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 67.89 kB / 1.07 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.047/1.048, allocations: 159.9 MB / 1.226 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004761/1.053, allocations: 2.622 MB / 1.229 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002065/1.055, allocations: 0.904 MB / 1.23 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004934/1.056, allocations: 11.94 kB / 1.23 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002541/1.056, allocations: 59.39 kB / 1.23 GB, free: 9.938 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001932/1.056, allocations: 71.34 kB / 1.23 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005694/1.057, allocations: 234.7 kB / 1.23 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004656/1.057, allocations: 455.7 kB / 1.231 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003422/1.058, allocations: 225.1 kB / 1.231 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/1.058, allocations: 151.4 kB / 1.231 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/1.058, allocations: 147.2 kB / 1.231 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.304e-05/1.058, allocations: 56 kB / 1.231 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.645e-05/1.058, allocations: 48 kB / 1.231 GB, free: 8.57 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.625e-05/1.058, allocations: 91.7 kB / 1.231 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001802/1.058, allocations: 191 kB / 1.231 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006467/1.059, allocations: 0.6194 MB / 1.232 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.059, allocations: 0 / 1.232 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.402e-06/1.059, allocations: 3.938 kB / 1.232 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.626e-06/1.059, allocations: 0 / 1.232 GB, free: 7.672 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009529/1.06, allocations: 0.6621 MB / 1.233 GB, free: 6.961 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/1.06, allocations: 8.031 kB / 1.233 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.085e-05/1.06, allocations: 40.7 kB / 1.233 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/1.061, allocations: 391.4 kB / 1.233 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/1.061, allocations: 20.94 kB / 1.233 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.082e-05/1.061, allocations: 32.38 kB / 1.233 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/1.061, allocations: 329.7 kB / 1.233 GB, free: 6.102 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/1.061, allocations: 4 kB / 1.233 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/1.061, allocations: 8 kB / 1.233 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/1.061, allocations: 8 kB / 1.233 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/1.062, allocations: 242.1 kB / 1.234 GB, free: 5.848 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/1.063, allocations: 1.151 MB / 1.235 GB, free: 4.637 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/1.064, allocations: 230.8 kB / 1.235 GB, free: 4.402 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/1.064, allocations: 100.9 kB / 1.235 GB, free: 4.301 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-05/1.064, allocations: 4 kB / 1.235 GB, free: 4.297 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/1.064, allocations: 34.5 kB / 1.235 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/1.064, allocations: 0 / 1.235 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.0006675/1.065, allocations: 305.2 kB / 1.235 GB, free: 3.949 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/1.065, allocations: 85.11 kB / 1.236 GB, free: 3.848 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/1.065, allocations: 324.6 kB / 1.236 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/1.065, allocations: 29.7 kB / 1.236 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000142/1.066, allocations: 196.3 kB / 1.236 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.065e-05/1.066, allocations: 59.47 kB / 1.236 GB, free: 3.23 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.541e-05/1.066, allocations: 45.64 kB / 1.236 GB, free: 3.18 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001466/1.066, allocations: 346.8 kB / 1.236 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/1.066, allocations: 84.83 kB / 1.237 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001862/1.066, allocations: 119.4 kB / 1.237 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/1.067, allocations: 192.1 kB / 1.237 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.067, allocations: 0 / 1.237 GB, free: 2.422 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004206/1.067, allocations: 255.1 kB / 1.237 GB, free: 2.168 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/1.067, allocations: 8 kB / 1.237 GB, free: 2.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/1.067, allocations: 0 / 1.237 GB, free: 2.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/1.067, allocations: 3.984 kB / 1.237 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/1.067, allocations: 39.98 kB / 1.237 GB, free: 2.117 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/1.067, allocations: 7.984 kB / 1.237 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/1.067, allocations: 19.83 kB / 1.237 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/1.067, allocations: 7.984 kB / 1.237 GB, free: 2.082 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002291/1.068, allocations: 196.1 kB / 1.237 GB, free: 1.887 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001401/1.068, allocations: 99.41 kB / 1.237 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00025/1.068, allocations: 168.4 kB / 1.238 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.82e-07/1.068, allocations: 0 / 1.238 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003427/1.068, allocations: 233.3 kB / 1.238 GB, free: 1.371 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/1.068, allocations: 5.875 kB / 1.238 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-06/1.068, allocations: 0 / 1.238 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.306e-06/1.068, allocations: 4 kB / 1.238 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/1.069, allocations: 23.98 kB / 1.238 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-06/1.069, allocations: 8 kB / 1.238 GB, free: 1.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/1.069, allocations: 19.89 kB / 1.238 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/1.069, allocations: 4 kB / 1.238 GB, free: 1.309 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (expMod.oveWriAct_activate,expMod.oveWriSet_activate,expMod.mod.conPI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/1.069, allocations: 198 kB / 1.238 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.359e-05/1.069, allocations: 31.81 kB / 1.238 GB, free: 1.078 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.143e-05/1.069, allocations: 31.28 kB / 1.238 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/1.069, allocations: 0 / 1.238 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/1.069, allocations: 0 / 1.238 GB, free: 1.047 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/1.069, allocations: 144.8 kB / 1.238 GB, free: 0.8867 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/1.069, allocations: 4 kB / 1.238 GB, free: 0.8828 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/1.069, allocations: 12 kB / 1.238 GB, free: 0.8711 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/1.069, allocations: 11.92 kB / 1.238 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005785/1.07, allocations: 302.9 kB / 1.239 GB, free: 0.5586 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006767/1.071, allocations: 0.5257 MB / 1.239 GB, free: 16 kB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001889/1.071, allocations: 94.94 kB / 1.239 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002103/1.071, allocations: 235.1 kB / 1.239 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of Backend: time 3.1e-07/1.071, allocations: 0 / 1.239 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006979/1.072, allocations: 283.5 kB / 1.24 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001195/1.073, allocations: 1.031 MB / 1.241 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of Templates: time 0.008586/1.082, allocations: 4.3 MB / 1.245 GB, free: 10.07 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches