Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001631/0.001631, allocations: 105.4 kB / 16.4 MB, free: 5.977 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.001961/0.001961, allocations: 189.3 kB / 17.34 MB, free: 5.586 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.372/1.372, 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 10.1.1-maint.10.0.x/package.mo): time 2.505/2.505, allocations: 437 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.001521, allocations: 76.09 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9421/0.9436, allocations: 151.6 MB / 1.167 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004365/0.9481, allocations: 2.602 MB / 1.17 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.95, allocations: 0.9118 MB / 1.171 GB, free: 364 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003786/0.9504, allocations: 8 kB / 1.171 GB, free: 356 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.9507, allocations: 63.33 kB / 1.171 GB, free: 292 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.951, allocations: 67.41 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006515/0.9517, allocations: 234 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.000616/0.9523, allocations: 459.6 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003905/0.9527, allocations: 234 kB / 1.172 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.9529, allocations: 143.4 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.9532, allocations: 151.2 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 8.277e-05/0.9533, allocations: 48 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 6.333e-05/0.9533, allocations: 55.94 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 8.596e-05/0.9534, allocations: 91.66 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.9536, allocations: 187.1 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006732/0.9543, allocations: 0.6189 MB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.9543, allocations: 0 / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.325e-06/0.9543, allocations: 4 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.908e-05/0.9543, allocations: 0 / 1.173 GB, free: 14.02 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001208/0.9555, allocations: 0.6524 MB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.9556, allocations: 11.98 kB / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.9557, allocations: 40.47 kB / 1.174 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006195/0.9563, allocations: 395.2 kB / 1.174 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.143e-05/0.9564, allocations: 20.94 kB / 1.174 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.9564, allocations: 28.38 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006207/0.9571, allocations: 329.7 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.9571, allocations: 0 / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.9571, allocations: 12 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.9571, allocations: 4 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.9576, allocations: 234.1 kB / 1.175 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.9592, allocations: 1.159 MB / 1.176 GB, free: 11 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004737/0.9597, allocations: 230.8 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.9599, allocations: 108.8 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.9599, allocations: 0 / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.9599, allocations: 30.56 kB / 1.176 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 9.72e-07/0.9599, allocations: 4 kB / 1.176 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.0006093/0.9605, allocations: 303.8 kB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.9606, allocations: 77.11 kB / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.961, allocations: 328.5 kB / 1.177 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.961, allocations: 25.7 kB / 1.177 GB, free: 9.859 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.9612, allocations: 200 kB / 1.177 GB, free: 9.66 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.793e-05/0.9612, allocations: 59.2 kB / 1.177 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.9613, allocations: 41.66 kB / 1.177 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.9615, allocations: 342.8 kB / 1.177 GB, free: 9.211 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.9617, allocations: 88.77 kB / 1.178 GB, free: 9.121 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.9619, allocations: 113.6 kB / 1.178 GB, free: 9 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.9622, allocations: 190.6 kB / 1.178 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.9622, allocations: 0 / 1.178 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004535/0.9627, allocations: 259.5 kB / 1.178 GB, free: 8.547 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.9627, allocations: 7.938 kB / 1.178 GB, free: 8.539 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.9627, allocations: 0 / 1.178 GB, free: 8.539 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.9627, allocations: 7.984 kB / 1.178 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.9629, allocations: 31.92 kB / 1.178 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.9629, allocations: 0 / 1.178 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.9631, allocations: 31.62 kB / 1.178 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.9631, allocations: 7.984 kB / 1.178 GB, free: 8.461 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002231/0.9633, allocations: 196.1 kB / 1.178 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001573/0.9635, allocations: 111.4 kB / 1.178 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000257/0.9638, allocations: 154.6 kB / 1.179 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.31e-07/0.9638, allocations: 0 / 1.179 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003691/0.9641, allocations: 231.4 kB / 1.179 GB, free: 7.754 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.9642, allocations: 8 kB / 1.179 GB, free: 7.746 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-06/0.9642, allocations: 0 / 1.179 GB, free: 7.746 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-06/0.9642, allocations: 4 kB / 1.179 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.9643, allocations: 27.92 kB / 1.179 GB, free: 7.715 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.9643, allocations: 4 kB / 1.179 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.9644, allocations: 11.94 kB / 1.179 GB, free: 7.699 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.9644, allocations: 7.938 kB / 1.179 GB, free: 7.691 MB / 0.9044 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.0001217/0.9646, allocations: 204.1 kB / 1.179 GB, free: 7.484 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/0.9646, allocations: 35.62 kB / 1.179 GB, free: 7.449 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.339e-05/0.9647, allocations: 35.28 kB / 1.179 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.9647, allocations: 0 / 1.179 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.9647, allocations: 0 / 1.179 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.9647, allocations: 7.938 kB / 1.179 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/0.9652, allocations: 413.2 kB / 1.18 GB, free: 6.953 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.9652, allocations: 0 / 1.18 GB, free: 6.953 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.9653, allocations: 23.98 kB / 1.18 GB, free: 6.93 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.9654, allocations: 0 / 1.18 GB, free: 6.93 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.9654, allocations: 4 kB / 1.18 GB, free: 6.926 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.9654, allocations: 4 kB / 1.18 GB, free: 6.922 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.9654, allocations: 0 / 1.18 GB, free: 6.922 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006591/0.9661, allocations: 438.9 kB / 1.18 GB, free: 6.477 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.9662, allocations: 132.7 kB / 1.18 GB, free: 6.328 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.48e-05/0.9662, allocations: 4 kB / 1.18 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.9664, allocations: 12.06 kB / 1.18 GB, free: 6.312 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.9664, allocations: 11.92 kB / 1.18 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.9665, allocations: 4 kB / 1.18 GB, free: 6.297 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002272/0.9667, allocations: 239.1 kB / 1.18 GB, free: 6.066 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9667, allocations: 3.938 kB / 1.18 GB, free: 6.062 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003922/0.9671, allocations: 95.53 kB / 1.18 GB, free: 5.969 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (expMod.mod.conPI.I.y,expMod.mod.firOrd.y) * Number of discrete variables: 2 (expMod.oveWriSet_activate,expMod.oveWriAct_activate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001287/0.9672, allocations: 103.2 kB / 1.181 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005762/0.9678, allocations: 285.8 kB / 1.181 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9678, allocations: 0 / 1.181 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.968, allocations: 97.03 kB / 1.181 GB, free: 5.488 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.9685, allocations: 85.31 kB / 1.181 GB, free: 5.41 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.9696, allocations: 0.5916 MB / 1.182 GB, free: 4.785 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.97, allocations: 0.7714 MB / 1.182 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.784e-05/0.9701, allocations: 23.44 kB / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.9701, allocations: 0 / 1.182 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of Templates: time 0.006318/0.9764, allocations: 3.996 MB / 1.186 GB, free: 15.97 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches