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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.46/2.46, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 184 kB / 0.4902 GB, free: 2.234 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 223.1 MB / 0.7992 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.001041, allocations: 91.14 kB / 0.9396 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005476/0.0005478, allocations: 8.719 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2813, allocations: 143 MB / 1.229 GB, free: 85.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.4885, allocations: 155.9 MB / 1.381 GB, free: 9.379 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.4887, allocations: 87.95 kB / 1.382 GB, free: 9.293 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01677/0.5055, allocations: 6.949 MB / 1.388 GB, free: 2.324 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.816e-06/0.5056, allocations: 0 / 1.388 GB, free: 2.324 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.17e-05/0.5056, allocations: 12 kB / 1.388 GB, free: 2.312 MB / 0.8855 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.001006/0.5066, allocations: 0.592 MB / 1.389 GB, free: 1.672 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.5067, allocations: 12.52 kB / 1.389 GB, free: 1.66 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.36e-05/0.5068, allocations: 47.39 kB / 1.389 GB, free: 1.613 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/0.5074, allocations: 386.7 kB / 1.389 GB, free: 1.195 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.5074, allocations: 20.56 kB / 1.389 GB, free: 1.176 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.865e-05/0.5075, allocations: 28 kB / 1.389 GB, free: 1.148 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/0.5081, allocations: 321.4 kB / 1.39 GB, free: 0.8164 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.5081, allocations: 0 / 1.39 GB, free: 0.8164 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/0.5082, allocations: 12 kB / 1.39 GB, free: 0.8047 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.5082, allocations: 8 kB / 1.39 GB, free: 0.7969 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005337/0.5087, allocations: 254 kB / 1.39 GB, free: 0.5469 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.5103, allocations: 1.163 MB / 1.391 GB, free: 15.32 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005728/0.5109, allocations: 254.8 kB / 1.391 GB, free: 15.07 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.511, allocations: 0 / 1.391 GB, free: 15.07 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.511, allocations: 38.52 kB / 1.391 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=16): time 1.243e-06/0.511, allocations: 0 / 1.391 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of matching and sorting (n=16): time 0.0006759/0.5117, allocations: 315.6 kB / 1.392 GB, free: 14.71 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.5118, allocations: 89.05 kB / 1.392 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003126/0.5121, allocations: 288 kB / 1.392 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.5121, allocations: 29.7 kB / 1.392 GB, free: 14.28 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.5123, allocations: 204 kB / 1.392 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 5.653e-05/0.5124, allocations: 55.19 kB / 1.392 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-06/0.5124, allocations: 4 kB / 1.392 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.5125, allocations: 338.8 kB / 1.393 GB, free: 13.68 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.5127, allocations: 87.95 kB / 1.393 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.5129, allocations: 120.1 kB / 1.393 GB, free: 13.46 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.5131, allocations: 92.94 kB / 1.393 GB, free: 13.37 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5131, allocations: 4 kB / 1.393 GB, free: 13.37 MB / 0.9011 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004682/0.5136, allocations: 266.8 kB / 1.393 GB, free: 13.1 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.5137, allocations: 267 kB / 1.393 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.5137, allocations: 0 / 1.393 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.5138, allocations: 4.062 kB / 1.393 GB, free: 12.82 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.5139, allocations: 39.92 kB / 1.393 GB, free: 12.78 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.5139, allocations: 7.953 kB / 1.393 GB, free: 12.77 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.5141, allocations: 23.83 kB / 1.393 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.5141, allocations: 4 kB / 1.393 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/0.5141, allocations: 4 kB / 1.393 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003145/0.5144, allocations: 181 kB / 1.394 GB, free: 12.56 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/0.5144, allocations: 7.938 kB / 1.394 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-06/0.5145, allocations: 0 / 1.394 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.5146, allocations: 27.92 kB / 1.394 GB, free: 12.53 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-06/0.5146, allocations: 4 kB / 1.394 GB, free: 12.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.5147, allocations: 23.84 kB / 1.394 GB, free: 12.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.5147, allocations: 4 kB / 1.394 GB, free: 12.5 MB / 0.9011 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 (actSet.y,actAct.y,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.0002058/0.5149, allocations: 249.1 kB / 1.394 GB, free: 12.24 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.426e-05/0.515, allocations: 31.62 kB / 1.394 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.165e-05/0.5151, allocations: 35.28 kB / 1.394 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.5151, allocations: 0 / 1.394 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5151, allocations: 0 / 1.394 GB, free: 12.18 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.5151, allocations: 3.984 kB / 1.394 GB, free: 12.17 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.5155, allocations: 409.3 kB / 1.394 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.5156, allocations: 3.953 kB / 1.394 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.5157, allocations: 23.98 kB / 1.394 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.5157, allocations: 4 kB / 1.394 GB, free: 11.69 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.5158, allocations: 8 kB / 1.394 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.5158, allocations: 0 / 1.394 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5158, allocations: 3.938 kB / 1.394 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006888/0.5165, allocations: 458.9 kB / 1.395 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.5166, allocations: 136.7 kB / 1.395 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.5166, allocations: 4 kB / 1.395 GB, free: 11.06 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.5168, allocations: 8 kB / 1.395 GB, free: 11.05 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.408e-05/0.5169, allocations: 12.05 kB / 1.395 GB, free: 11.04 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.5169, allocations: 8 kB / 1.395 GB, free: 11.03 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002493/0.5171, allocations: 239 kB / 1.395 GB, free: 10.8 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5171, allocations: 0 / 1.395 GB, free: 10.8 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003906/0.5175, allocations: 87.69 kB / 1.395 GB, free: 10.71 MB / 0.9011 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 (actSet.y,actAct.y) * 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.0001501/0.5177, allocations: 100 kB / 1.395 GB, free: 10.61 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006012/0.5183, allocations: 297 kB / 1.396 GB, free: 10.32 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5183, allocations: 0 / 1.396 GB, free: 10.32 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.5185, allocations: 105.8 kB / 1.396 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.519, allocations: 74.17 kB / 1.396 GB, free: 10.14 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.52, allocations: 0.6442 MB / 1.397 GB, free: 9.469 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.5204, allocations: 0.7833 MB / 1.397 GB, free: 8.656 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001284/0.5206, allocations: 38.2 kB / 1.397 GB, free: 8.621 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.848e-05/0.5206, allocations: 19.44 kB / 1.397 GB, free: 8.602 MB / 0.9011 GB Notification: Performance of SimCode: time 3.2e-07/0.5206, allocations: 0 / 1.397 GB, free: 8.602 MB / 0.9011 GB Notification: Performance of Templates: time 0.006019/0.5267, allocations: 2.895 MB / 1.4 GB, free: 5.746 MB / 0.9011 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