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.0009901/0.0009903, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001271/0.001271, allocations: 168.7 kB / 15.95 MB, free: 204 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.432/1.432, allocations: 223.3 MB / 240 MB, free: 5.406 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.531/2.531, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003881/0.0003882, allocations: 8 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7892/0.7896, allocations: 142.4 MB / 0.9544 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003287/0.793, allocations: 2.186 MB / 0.9566 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001952/0.795, allocations: 0.8441 MB / 0.9574 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007041/0.7957, allocations: 11.78 kB / 0.9574 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003753/0.7961, allocations: 34.97 kB / 0.9574 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000429/0.7966, allocations: 44.98 kB / 0.9575 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008936/0.7975, allocations: 136.2 kB / 0.9576 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008919/0.7984, allocations: 387.6 kB / 0.958 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.7988, allocations: 145.6 kB / 0.9581 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.7989, allocations: 81.39 kB / 0.9582 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.7991, allocations: 95.44 kB / 0.9583 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.313e-05/0.7991, allocations: 7.625 kB / 0.9583 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.141e-05/0.7992, allocations: 6.906 kB / 0.9583 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.6e-05/0.7992, allocations: 40.5 kB / 0.9583 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/0.7993, allocations: 88.42 kB / 0.9584 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000512/0.7998, allocations: 0.4917 MB / 0.9589 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.7998, allocations: 0 / 0.9589 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.377e-06/0.7998, allocations: 1.094 kB / 0.9589 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.7999, allocations: 0 / 0.9589 GB, free: 4.215 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.001215/0.8011, allocations: 0.5908 MB / 0.9595 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 7.658e-05/0.8012, allocations: 9.094 kB / 0.9595 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002101/0.8014, allocations: 39.47 kB / 0.9595 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007796/0.8022, allocations: 372.2 kB / 0.9599 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.825e-05/0.8023, allocations: 20.09 kB / 0.9599 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.482e-05/0.8024, allocations: 25.19 kB / 0.9599 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008849/0.8032, allocations: 331.9 kB / 0.9602 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.8033, allocations: 0 / 0.9602 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.8033, allocations: 10.75 kB / 0.9603 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.8034, allocations: 10.83 kB / 0.9603 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007423/0.8041, allocations: 251.2 kB / 0.9605 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.8064, allocations: 1.172 MB / 0.9616 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.8071, allocations: 245 kB / 0.9619 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.8073, allocations: 102.9 kB / 0.962 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.8074, allocations: 6.25 kB / 0.962 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.8074, allocations: 39.66 kB / 0.962 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.442e-06/0.8075, allocations: 0 / 0.962 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0009407/0.8084, allocations: 320.7 kB / 0.9623 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.537e-05/0.8085, allocations: 83.2 kB / 0.9624 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005078/0.809, allocations: 329 kB / 0.9627 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.8091, allocations: 30.8 kB / 0.9628 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.8092, allocations: 191.2 kB / 0.9629 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.359e-05/0.8093, allocations: 57.25 kB / 0.963 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.8093, allocations: 5.344 kB / 0.963 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.8095, allocations: 345 kB / 0.9633 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.8097, allocations: 83.5 kB / 0.9634 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.81, allocations: 129.1 kB / 0.9635 GB, free: 496 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.8102, allocations: 89.33 kB / 0.9636 GB, free: 452 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.8102, allocations: 1.031 kB / 0.9636 GB, free: 452 kB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005889/0.8108, allocations: 266.9 kB / 0.9639 GB, free: 304 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.558e-05/0.8109, allocations: 108.6 kB / 0.964 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.8109, allocations: 3.984 kB / 0.964 GB, free: 184 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.8109, allocations: 2.469 kB / 0.964 GB, free: 184 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.8112, allocations: 33.73 kB / 0.964 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.8112, allocations: 5.578 kB / 0.964 GB, free: 172 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.8113, allocations: 29.22 kB / 0.964 GB, free: 156 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.8114, allocations: 11.8 kB / 0.9641 GB, free: 148 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.8114, allocations: 11.8 kB / 0.9641 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003741/0.8118, allocations: 168.8 kB / 0.9642 GB, free: 60 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.8118, allocations: 4 kB / 0.9642 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.516e-06/0.8118, allocations: 2.375 kB / 0.9642 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.8119, allocations: 33.36 kB / 0.9643 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.8119, allocations: 2.281 kB / 0.9643 GB, free: 44 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.89e-05/0.812, allocations: 18.84 kB / 0.9643 GB, free: 32 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.8121, allocations: 13.03 kB / 0.9643 GB, free: 24 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.0003215/0.8124, allocations: 237.5 kB / 0.9645 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.523e-05/0.8125, allocations: 42.31 kB / 0.9646 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.8126, allocations: 35.06 kB / 0.9646 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.8126, allocations: 2.719 kB / 0.9646 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.8126, allocations: 0 / 0.9646 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.8126, allocations: 0 / 0.9646 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005791/0.8132, allocations: 407.8 kB / 0.965 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8132, allocations: 0 / 0.965 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.8134, allocations: 29.67 kB / 0.965 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.8134, allocations: 0 / 0.965 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.8134, allocations: 10.83 kB / 0.965 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.8134, allocations: 0 / 0.965 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.8134, allocations: 3.938 kB / 0.965 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00083/0.8143, allocations: 458.7 kB / 0.9655 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.8144, allocations: 123 kB / 0.9656 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.8145, allocations: 5.297 kB / 0.9656 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.8147, allocations: 21.2 kB / 0.9656 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.8147, allocations: 9.484 kB / 0.9656 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.8147, allocations: 6.438 kB / 0.9656 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003162/0.8151, allocations: 232.7 kB / 0.9658 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8151, allocations: 0 / 0.9658 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004422/0.8155, allocations: 96.19 kB / 0.9659 GB, free: 14.71 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.0001484/0.8157, allocations: 96.34 kB / 0.966 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007133/0.8164, allocations: 298 kB / 0.9663 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8164, allocations: 256 / 0.9663 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.8167, allocations: 105.6 kB / 0.9664 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006959/0.8174, allocations: 71.91 kB / 0.9665 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.8189, allocations: 0.655 MB / 0.9671 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.8193, allocations: 0.7715 MB / 0.9679 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001786/0.8195, allocations: 29.48 kB / 0.9679 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.8196, allocations: 23.66 kB / 0.9679 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.8196, allocations: 4 kB / 0.9679 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of Templates: time 0.01013/0.8298, allocations: 2.851 MB / 0.9707 GB, free: 11.78 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches