Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001109/0.001109, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.00132/0.00132, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.534/2.534, allocations: 390.3 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003861, allocations: 8 kB / 0.8145 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9519/0.9524, allocations: 142.3 MB / 0.9535 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003/0.9554, allocations: 2.176 MB / 0.9556 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.9568, allocations: 0.8449 MB / 0.9564 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.9571, allocations: 8.25 kB / 0.9565 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.239e-05/0.9572, allocations: 27.66 kB / 0.9565 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.9576, allocations: 73.28 kB / 0.9566 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003815/0.9579, allocations: 157.8 kB / 0.9567 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.9584, allocations: 250.2 kB / 0.9569 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.9586, allocations: 142.9 kB / 0.9571 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.9587, allocations: 84.2 kB / 0.9572 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.9589, allocations: 94.98 kB / 0.9572 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.9589, allocations: 7.031 kB / 0.9573 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.096e-05/0.959, allocations: 7.406 kB / 0.9573 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.266e-05/0.959, allocations: 44.64 kB / 0.9573 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.584e-05/0.9591, allocations: 88.7 kB / 0.9574 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003681/0.9595, allocations: 498.7 kB / 0.9579 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.9595, allocations: 0 / 0.9579 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.334e-06/0.9595, allocations: 0 / 0.9579 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.9595, allocations: 0 / 0.9579 GB, free: 4.695 MB / 0.7169 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.0008558/0.9604, allocations: 0.5865 MB / 0.9584 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.9604, allocations: 8.844 kB / 0.9584 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.052e-05/0.9605, allocations: 39.53 kB / 0.9585 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004036/0.9609, allocations: 369.3 kB / 0.9588 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.9609, allocations: 24.27 kB / 0.9589 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.961, allocations: 29.42 kB / 0.9589 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/0.9616, allocations: 325.2 kB / 0.9592 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.9616, allocations: 7.875 kB / 0.9592 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.9617, allocations: 10.75 kB / 0.9592 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.9617, allocations: 10.83 kB / 0.9592 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.9622, allocations: 247.1 kB / 0.9595 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.9637, allocations: 1.18 MB / 0.9606 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.9643, allocations: 245 kB / 0.9608 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.9643, allocations: 6.391 kB / 0.9609 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.9643, allocations: 35.59 kB / 0.9609 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.294e-06/0.9644, allocations: 4 kB / 0.9609 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0007006/0.9651, allocations: 314 kB / 0.9612 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.9651, allocations: 79.17 kB / 0.9613 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.9655, allocations: 333.6 kB / 0.9616 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.9655, allocations: 30.61 kB / 0.9616 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.9657, allocations: 194.7 kB / 0.9618 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.9657, allocations: 53.67 kB / 0.9619 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-06/0.9657, allocations: 1.094 kB / 0.9619 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.9658, allocations: 341.7 kB / 0.9622 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.966, allocations: 91.62 kB / 0.9623 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.9662, allocations: 118.5 kB / 0.9624 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.9664, allocations: 99.59 kB / 0.9625 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.9665, allocations: 0 / 0.9625 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004917/0.9669, allocations: 269.1 kB / 0.9627 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.525e-05/0.9671, allocations: 268.1 kB / 0.963 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.9671, allocations: 4.062 kB / 0.963 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.9671, allocations: 6.547 kB / 0.963 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.9673, allocations: 34.64 kB / 0.963 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.9673, allocations: 9.219 kB / 0.963 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.9674, allocations: 27.69 kB / 0.9631 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.9674, allocations: 5.469 kB / 0.9631 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.275e-06/0.9675, allocations: 3.5 kB / 0.9631 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003108/0.9678, allocations: 177.8 kB / 0.9632 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-06/0.9678, allocations: 1.031 kB / 0.9632 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.669e-06/0.9678, allocations: 2.031 kB / 0.9632 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.9679, allocations: 33.67 kB / 0.9633 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.9679, allocations: 2.312 kB / 0.9633 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.9681, allocations: 23.16 kB / 0.9633 GB, free: 400 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.9681, allocations: 4.094 kB / 0.9633 GB, free: 400 kB / 0.7169 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.oveWriSet_activate,expMod.oveWriAct_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001916/0.9683, allocations: 242.9 kB / 0.9635 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.173e-05/0.9683, allocations: 33.75 kB / 0.9636 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.677e-05/0.9684, allocations: 35 kB / 0.9636 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.9684, allocations: 2 kB / 0.9636 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.9684, allocations: 4.953 kB / 0.9636 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.9685, allocations: 3.938 kB / 0.9636 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/0.969, allocations: 409.5 kB / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.969, allocations: 0 / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.9692, allocations: 30.83 kB / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.9692, allocations: 1.25 kB / 0.964 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.9692, allocations: 5.094 kB / 0.964 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.9692, allocations: 1.094 kB / 0.964 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.9692, allocations: 0 / 0.964 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008412/0.9701, allocations: 466.7 kB / 0.9645 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.9702, allocations: 125.8 kB / 0.9646 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.9703, allocations: 6.188 kB / 0.9646 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.9704, allocations: 16.17 kB / 0.9646 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.9705, allocations: 13.52 kB / 0.9646 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.9705, allocations: 3.156 kB / 0.9646 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002853/0.9708, allocations: 229.1 kB / 0.9649 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9708, allocations: 0 / 0.9649 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004465/0.9713, allocations: 95.75 kB / 0.965 GB, free: 15.08 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001625/0.9714, allocations: 114 kB / 0.9651 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007102/0.9722, allocations: 294.6 kB / 0.9653 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.9722, allocations: 0 / 0.9653 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.9724, allocations: 102.7 kB / 0.9654 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005727/0.973, allocations: 72.45 kB / 0.9655 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.9744, allocations: 0.6492 MB / 0.9661 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.9749, allocations: 0.7848 MB / 0.9669 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001511/0.975, allocations: 25.5 kB / 0.9669 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.9751, allocations: 24.78 kB / 0.967 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of SimCode: time 8.01e-07/0.9751, allocations: 0 / 0.967 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of Templates: time 0.00914/0.9843, allocations: 2.85 MB / 0.9697 GB, free: 12.14 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","../files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches