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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001636/0.001636, allocations: 108.7 kB / 16.41 MB, free: 6.031 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.001934/0.001934, allocations: 183.5 kB / 17.34 MB, free: 5.633 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.729/2.729, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 71.88 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8617/0.863, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004443/0.8675, allocations: 2.612 MB / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001911/0.8695, allocations: 0.8962 MB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004654/0.87, allocations: 8 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.8703, allocations: 71.33 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.8706, allocations: 59.41 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006875/0.8713, allocations: 232.7 kB / 1.212 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006867/0.872, allocations: 463.6 kB / 1.213 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003892/0.8724, allocations: 225.1 kB / 1.213 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.8726, allocations: 139.4 kB / 1.213 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.8729, allocations: 151.2 kB / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.853e-05/0.8729, allocations: 52 kB / 1.213 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.946e-05/0.873, allocations: 48 kB / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.8731, allocations: 95.66 kB / 1.213 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.8733, allocations: 187 kB / 1.213 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006378/0.8739, allocations: 0.6189 MB / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.8739, allocations: 0 / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8739, allocations: 0 / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.893e-05/0.874, allocations: 7.938 kB / 1.214 GB, free: 7.762 MB / 0.9356 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.001238/0.8752, allocations: 0.6486 MB / 1.215 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.8753, allocations: 11.97 kB / 1.215 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.8754, allocations: 44.47 kB / 1.215 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.8761, allocations: 387.3 kB / 1.215 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.8761, allocations: 20.94 kB / 1.215 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.667e-05/0.8762, allocations: 24.38 kB / 1.215 GB, free: 6.551 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.8768, allocations: 341.6 kB / 1.216 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.8769, allocations: 0 / 1.216 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.8769, allocations: 8 kB / 1.216 GB, free: 6.191 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.8769, allocations: 8 kB / 1.216 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.8774, allocations: 234.1 kB / 1.216 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.8791, allocations: 1.155 MB / 1.217 GB, free: 4.738 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.8796, allocations: 226.8 kB / 1.217 GB, free: 4.508 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.8798, allocations: 104.9 kB / 1.217 GB, free: 4.402 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.8798, allocations: 4 kB / 1.217 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.8799, allocations: 34.5 kB / 1.217 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.303e-06/0.8799, allocations: 0 / 1.217 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.0007093/0.8806, allocations: 304.1 kB / 1.218 GB, free: 4.055 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.8807, allocations: 81.11 kB / 1.218 GB, free: 3.957 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.881, allocations: 328.5 kB / 1.218 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.881, allocations: 25.7 kB / 1.218 GB, free: 3.598 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.8812, allocations: 204 kB / 1.218 GB, free: 3.395 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.413e-05/0.8813, allocations: 51.2 kB / 1.218 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.216e-05/0.8814, allocations: 45.7 kB / 1.218 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.8815, allocations: 338.8 kB / 1.219 GB, free: 2.953 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.8817, allocations: 92.77 kB / 1.219 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.8819, allocations: 117 kB / 1.219 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.8823, allocations: 192.4 kB / 1.219 GB, free: 2.539 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.8823, allocations: 0 / 1.219 GB, free: 2.539 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004792/0.8828, allocations: 254.9 kB / 1.219 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.8828, allocations: 12 kB / 1.219 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.8829, allocations: 0 / 1.219 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.8829, allocations: 3.984 kB / 1.219 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.8831, allocations: 35.92 kB / 1.219 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.8831, allocations: 0 / 1.219 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.8832, allocations: 27.69 kB / 1.219 GB, free: 2.207 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.8833, allocations: 4 kB / 1.219 GB, free: 2.203 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002429/0.8835, allocations: 200.1 kB / 1.219 GB, free: 2.004 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001689/0.8837, allocations: 103.4 kB / 1.22 GB, free: 1.891 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002649/0.884, allocations: 164.2 kB / 1.22 GB, free: 1.723 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.253e-06/0.884, allocations: 0 / 1.22 GB, free: 1.723 MB / 0.9356 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003741/0.8844, allocations: 233.1 kB / 1.22 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.858e-06/0.8844, allocations: 8.094 kB / 1.22 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-06/0.8844, allocations: 0 / 1.22 GB, free: 1.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.689e-06/0.8844, allocations: 4 kB / 1.22 GB, free: 1.477 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.8845, allocations: 27.92 kB / 1.22 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.8845, allocations: 4 kB / 1.22 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.8847, allocations: 11.94 kB / 1.22 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.8847, allocations: 7.938 kB / 1.22 GB, free: 1.426 MB / 0.9356 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.0001233/0.8848, allocations: 184.3 kB / 1.22 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-05/0.8849, allocations: 39.61 kB / 1.22 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.662e-05/0.885, allocations: 35.28 kB / 1.22 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.885, allocations: 0 / 1.22 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.885, allocations: 0 / 1.22 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.885, allocations: 7.875 kB / 1.22 GB, free: 1.16 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004229/0.8854, allocations: 413.2 kB / 1.221 GB, free: 0.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.8854, allocations: 0 / 1.221 GB, free: 0.707 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.8856, allocations: 27.98 kB / 1.221 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.8856, allocations: 0 / 1.221 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.8856, allocations: 0 / 1.221 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.8857, allocations: 4 kB / 1.221 GB, free: 0.6758 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8857, allocations: 11.94 kB / 1.221 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006818/0.8863, allocations: 440.9 kB / 1.221 GB, free: 224 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.8865, allocations: 124.8 kB / 1.221 GB, free: 80 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.8865, allocations: 11.98 kB / 1.221 GB, free: 68 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.8867, allocations: 12.06 kB / 1.221 GB, free: 56 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.8867, allocations: 11.92 kB / 1.221 GB, free: 44 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.8868, allocations: 4 kB / 1.221 GB, free: 40 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002535/0.887, allocations: 239.1 kB / 1.221 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.1e-07/0.887, allocations: 0 / 1.221 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003966/0.8874, allocations: 91.53 kB / 1.222 GB, free: 15.71 MB / 0.9512 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.0001289/0.8876, allocations: 103.2 kB / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006044/0.8882, allocations: 287.8 kB / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.8882, allocations: 0 / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.8884, allocations: 95.91 kB / 1.222 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.889, allocations: 94.61 kB / 1.222 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.8901, allocations: 0.5838 MB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.8905, allocations: 0.7753 MB / 1.223 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.8906, allocations: 19.44 kB / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of SimCode: time 2.41e-07/0.8906, allocations: 0 / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of Templates: time 0.006846/0.8974, allocations: 3.994 MB / 1.227 GB, free: 9.73 MB / 0.9512 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/jenkins1/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