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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009006/0.0009004, allocations: 99.62 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.0009869/0.0009869, allocations: 177.3 kB / 15.95 MB, free: 216 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.471/1.471, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.73/2.73, allocations: 436.5 MB / 0.7104 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.000437, allocations: 8 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9398/0.9402, allocations: 153.7 MB / 1.021 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.00357/0.9439, allocations: 2.177 MB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.9454, allocations: 0.8421 MB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.9456, allocations: 12 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 6.166e-05/0.9457, allocations: 27.66 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.9461, allocations: 79.67 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003883/0.9465, allocations: 142.1 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004134/0.9469, allocations: 252.1 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.9472, allocations: 148.4 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.9474, allocations: 87.5 kB / 1.024 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.9475, allocations: 95.3 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.9476, allocations: 8 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.865e-05/0.9476, allocations: 8 kB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.9477, allocations: 39.78 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.566e-05/0.9478, allocations: 85.52 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000469/0.9482, allocations: 496.8 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.9482, allocations: 7.938 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.475e-06/0.9483, allocations: 4 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.838e-06/0.9483, allocations: 0 / 1.025 GB, free: 12.73 MB / 0.7794 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.0009792/0.9493, allocations: 0.5726 MB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.9493, allocations: 12.03 kB / 1.026 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.149e-05/0.9494, allocations: 39.53 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005478/0.9499, allocations: 370.2 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.95, allocations: 28.45 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.753e-05/0.9501, allocations: 24 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006771/0.9507, allocations: 329.4 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.9508, allocations: 3.938 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.071e-05/0.9508, allocations: 12 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.9508, allocations: 8 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005025/0.9513, allocations: 242.2 kB / 1.027 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.9531, allocations: 1.178 MB / 1.028 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/0.9537, allocations: 250.8 kB / 1.028 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.9538, allocations: 0 / 1.028 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.9538, allocations: 38.56 kB / 1.028 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.9538, allocations: 0 / 1.028 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0007307/0.9546, allocations: 313.5 kB / 1.028 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.9546, allocations: 85.05 kB / 1.029 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/0.955, allocations: 328.5 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.9551, allocations: 29.7 kB / 1.029 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.9552, allocations: 196.1 kB / 1.029 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.232e-05/0.9553, allocations: 51.25 kB / 1.029 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.9553, allocations: 4 kB / 1.029 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.9555, allocations: 338.8 kB / 1.029 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.9556, allocations: 91.95 kB / 1.03 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.9559, allocations: 121.3 kB / 1.03 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.9561, allocations: 102.2 kB / 1.03 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.9561, allocations: 4 kB / 1.03 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004739/0.9565, allocations: 253.2 kB / 1.03 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.9567, allocations: 275 kB / 1.03 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.9567, allocations: 3.938 kB / 1.03 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.9567, allocations: 4 kB / 1.03 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.9569, allocations: 35.92 kB / 1.03 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.9569, allocations: 4 kB / 1.03 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.9571, allocations: 35.67 kB / 1.03 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.9571, allocations: 4 kB / 1.03 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.504e-06/0.9571, allocations: 4 kB / 1.03 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003109/0.9574, allocations: 177.8 kB / 1.031 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-06/0.9574, allocations: 4.062 kB / 1.031 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-06/0.9574, allocations: 0 / 1.031 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.9576, allocations: 35.92 kB / 1.031 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.9576, allocations: 3.953 kB / 1.031 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.9577, allocations: 23.75 kB / 1.031 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.9577, allocations: 4 kB / 1.031 GB, free: 6.91 MB / 0.7794 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.0002239/0.9579, allocations: 241.1 kB / 1.031 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.038e-05/0.958, allocations: 27.62 kB / 1.031 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.375e-05/0.9581, allocations: 47.2 kB / 1.031 GB, free: 6.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.9581, allocations: 4 kB / 1.031 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.9581, allocations: 3.953 kB / 1.031 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.9581, allocations: 3.984 kB / 1.031 GB, free: 6.578 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000436/0.9585, allocations: 405.3 kB / 1.031 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.9586, allocations: 0 / 1.031 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.9587, allocations: 27.98 kB / 1.031 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.9587, allocations: 0 / 1.031 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.9588, allocations: 4 kB / 1.031 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.9588, allocations: 4 kB / 1.031 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.9588, allocations: 4 kB / 1.031 GB, free: 6.094 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006974/0.9595, allocations: 462 kB / 1.032 GB, free: 5.629 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.9596, allocations: 128.7 kB / 1.032 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.9597, allocations: 4 kB / 1.032 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.9598, allocations: 15.98 kB / 1.032 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.9599, allocations: 11.98 kB / 1.032 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.9599, allocations: 4 kB / 1.032 GB, free: 5.449 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002342/0.9601, allocations: 231.1 kB / 1.032 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9601, allocations: 0 / 1.032 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004166/0.9605, allocations: 95.58 kB / 1.032 GB, free: 5.133 MB / 0.7794 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.0001338/0.9607, allocations: 107.2 kB / 1.032 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006058/0.9613, allocations: 298.3 kB / 1.033 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.9613, allocations: 0 / 1.033 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001869/0.9615, allocations: 103.9 kB / 1.033 GB, free: 4.629 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.962, allocations: 66.14 kB / 1.033 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.9631, allocations: 0.648 MB / 1.033 GB, free: 3.887 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.9635, allocations: 0.7872 MB / 1.034 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001237/0.9637, allocations: 30.28 kB / 1.034 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.9637, allocations: 19.44 kB / 1.034 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.9637, allocations: 0 / 1.034 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of Templates: time 0.006445/0.9702, allocations: 2.853 MB / 1.037 GB, free: 208 kB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches