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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.007137/0.007137, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001348/0.001348, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.679/2.679, allocations: 472.6 MB / 0.7453 GB, free: 476 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.89 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8712/0.8724, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003661/0.8762, allocations: 2.608 MB / 1.228 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001639/0.8778, allocations: 0.9001 MB / 1.229 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002432/0.8781, allocations: 7.938 kB / 1.229 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.8783, allocations: 63.39 kB / 1.229 GB, free: 9.91 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.8785, allocations: 71.39 kB / 1.229 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.879, allocations: 243.1 kB / 1.229 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.8794, allocations: 455.7 kB / 1.23 GB, free: 9.156 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.8798, allocations: 229.1 kB / 1.23 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.8799, allocations: 135.5 kB / 1.23 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001517/0.8801, allocations: 151.1 kB / 1.23 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.791e-05/0.8801, allocations: 52 kB / 1.23 GB, free: 8.594 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.099e-05/0.8802, allocations: 48 kB / 1.23 GB, free: 8.547 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.117e-05/0.8803, allocations: 95.7 kB / 1.231 GB, free: 8.453 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.8804, allocations: 187 kB / 1.231 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005782/0.881, allocations: 0.6233 MB / 1.231 GB, free: 7.648 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.881, allocations: 0 / 1.231 GB, free: 7.648 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.383e-06/0.881, allocations: 0 / 1.231 GB, free: 7.648 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.881, allocations: 0 / 1.231 GB, free: 7.648 MB / 0.9512 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.0009127/0.882, allocations: 0.6582 MB / 1.232 GB, free: 6.941 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.882, allocations: 8.031 kB / 1.232 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.019e-05/0.8821, allocations: 40.7 kB / 1.232 GB, free: 6.895 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.8826, allocations: 407.4 kB / 1.232 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.8826, allocations: 24.94 kB / 1.232 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.8827, allocations: 28.31 kB / 1.232 GB, free: 6.406 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.8832, allocations: 333.7 kB / 1.233 GB, free: 6.062 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.8833, allocations: 4 kB / 1.233 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.8833, allocations: 8 kB / 1.233 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.8833, allocations: 8 kB / 1.233 GB, free: 6.043 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004592/0.8838, allocations: 230.2 kB / 1.233 GB, free: 5.82 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.8852, allocations: 1.155 MB / 1.234 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004606/0.8856, allocations: 230.8 kB / 1.234 GB, free: 4.371 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.8858, allocations: 96.83 kB / 1.234 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.8859, allocations: 7.984 kB / 1.234 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.8859, allocations: 34.55 kB / 1.234 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 1.724e-06/0.8859, allocations: 0 / 1.234 GB, free: 4.223 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.0006401/0.8866, allocations: 310.2 kB / 1.235 GB, free: 3.914 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.8866, allocations: 81.11 kB / 1.235 GB, free: 3.816 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.887, allocations: 328.5 kB / 1.235 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.887, allocations: 25.7 kB / 1.235 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.8871, allocations: 200.3 kB / 1.235 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.8872, allocations: 55.48 kB / 1.235 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.692e-05/0.8873, allocations: 45.7 kB / 1.235 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.8874, allocations: 338.8 kB / 1.236 GB, free: 2.809 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.8876, allocations: 96.75 kB / 1.236 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.8878, allocations: 111.4 kB / 1.236 GB, free: 2.59 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003506/0.8881, allocations: 189.3 kB / 1.236 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8881, allocations: 0 / 1.236 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004496/0.8886, allocations: 261.2 kB / 1.236 GB, free: 2.137 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.8886, allocations: 8.062 kB / 1.236 GB, free: 2.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.8886, allocations: 4 kB / 1.236 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.8886, allocations: 0 / 1.236 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.8888, allocations: 35.92 kB / 1.236 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.8888, allocations: 0 / 1.236 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.889, allocations: 27.81 kB / 1.236 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.889, allocations: 4 kB / 1.237 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002272/0.8892, allocations: 196.1 kB / 1.237 GB, free: 1.863 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001502/0.8894, allocations: 101.3 kB / 1.237 GB, free: 1.754 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002538/0.8897, allocations: 172.4 kB / 1.237 GB, free: 1.578 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.132e-06/0.8897, allocations: 0 / 1.237 GB, free: 1.578 MB / 0.9512 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.000373/0.8901, allocations: 231.3 kB / 1.237 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.024e-06/0.8901, allocations: 4 kB / 1.237 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-06/0.8901, allocations: 4.094 kB / 1.237 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.657e-06/0.8901, allocations: 4 kB / 1.237 GB, free: 1.336 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.8902, allocations: 23.98 kB / 1.237 GB, free: 1.312 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.8902, allocations: 4 kB / 1.237 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.8903, allocations: 23.81 kB / 1.237 GB, free: 1.285 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.8904, allocations: 7.938 kB / 1.237 GB, free: 1.277 MB / 0.9512 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.0001171/0.8905, allocations: 188.7 kB / 1.237 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.8905, allocations: 31.81 kB / 1.237 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.176e-05/0.8906, allocations: 39.28 kB / 1.237 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.8906, allocations: 0 / 1.237 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.8907, allocations: 0 / 1.237 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.8907, allocations: 3.938 kB / 1.237 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.8911, allocations: 409.3 kB / 1.238 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.8911, allocations: 8 kB / 1.238 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.8913, allocations: 31.92 kB / 1.238 GB, free: 0.5234 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.8913, allocations: 0 / 1.238 GB, free: 0.5234 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.8913, allocations: 0 / 1.238 GB, free: 0.5234 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.8914, allocations: 7.984 kB / 1.238 GB, free: 0.5156 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.8914, allocations: 3.938 kB / 1.238 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.892, allocations: 434.3 kB / 1.238 GB, free: 76 kB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.8922, allocations: 132.9 kB / 1.238 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.939e-05/0.8922, allocations: 8 kB / 1.238 GB, free: 15.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.8924, allocations: 7.984 kB / 1.238 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.8924, allocations: 19.98 kB / 1.239 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.8925, allocations: 4 kB / 1.239 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002267/0.8927, allocations: 239.1 kB / 1.239 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8927, allocations: 0 / 1.239 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003897/0.8931, allocations: 87.73 kB / 1.239 GB, free: 15.57 MB / 0.9669 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.0001351/0.8932, allocations: 107.2 kB / 1.239 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005929/0.8938, allocations: 291.7 kB / 1.239 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8938, allocations: 0 / 1.239 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.894, allocations: 95.91 kB / 1.239 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005711/0.8946, allocations: 93.42 kB / 1.239 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.8957, allocations: 0.5644 MB / 1.24 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.8961, allocations: 0.7753 MB / 1.241 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001322/0.8962, allocations: 30.28 kB / 1.241 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.8963, allocations: 23.44 kB / 1.241 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of SimCode: time 4.71e-07/0.8963, allocations: 4 kB / 1.241 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of Templates: time 0.006743/0.903, allocations: 3.179 MB / 1.244 GB, free: 10.38 MB / 0.9669 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches