Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001621/0.001621, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001983/0.001983, allocations: 195.9 kB / 16.26 MB, free: 6.625 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 437 MB / 0.71 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001456, allocations: 63.91 kB / 0.8687 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6623/0.6638, allocations: 151.6 MB / 1.017 GB, free: 2.695 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003635/0.6674, allocations: 2.654 MB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.6688, allocations: 0.8846 MB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.669, allocations: 15.88 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.6692, allocations: 51.64 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.6694, allocations: 43.61 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.6698, allocations: 213 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003905/0.6702, allocations: 455.6 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003171/0.6706, allocations: 229.1 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.6707, allocations: 139.4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.6709, allocations: 151.2 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.6709, allocations: 48 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.069e-05/0.671, allocations: 52 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.313e-05/0.671, allocations: 91.7 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.6712, allocations: 191 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004739/0.6717, allocations: 0.6017 MB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.6717, allocations: 0 / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6717, allocations: 4 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.6717, allocations: 0 / 1.022 GB, free: 12.88 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.0009144/0.6726, allocations: 0.6467 MB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.6727, allocations: 11.98 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.308e-05/0.6727, allocations: 40.47 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004395/0.6732, allocations: 391.2 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.6732, allocations: 20.94 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.6733, allocations: 24.38 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.6738, allocations: 329.7 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.6739, allocations: 0 / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.6739, allocations: 8 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.6739, allocations: 8 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004466/0.6744, allocations: 238.1 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.6758, allocations: 1.174 MB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004479/0.6762, allocations: 234.1 kB / 1.025 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.6764, allocations: 100.8 kB / 1.026 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.6764, allocations: 4 kB / 1.026 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.6765, allocations: 30.56 kB / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.6765, allocations: 0 / 1.026 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.000637/0.6771, allocations: 299.7 kB / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.6772, allocations: 85.11 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.6775, allocations: 332.4 kB / 1.026 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.6775, allocations: 25.7 kB / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.6777, allocations: 200 kB / 1.026 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.6777, allocations: 55.14 kB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.235e-05/0.6778, allocations: 41.7 kB / 1.027 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.6779, allocations: 338.8 kB / 1.027 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.6781, allocations: 92.81 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.6783, allocations: 119.3 kB / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000329/0.6786, allocations: 192.7 kB / 1.027 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6786, allocations: 0 / 1.027 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004254/0.6791, allocations: 257.1 kB / 1.028 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.6791, allocations: 4 kB / 1.028 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.6791, allocations: 4 kB / 1.028 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.6791, allocations: 0 / 1.028 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.6793, allocations: 27.98 kB / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.6793, allocations: 8.062 kB / 1.028 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.6794, allocations: 27.77 kB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.6795, allocations: 4 kB / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002175/0.6797, allocations: 196.1 kB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001404/0.6798, allocations: 105.4 kB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002502/0.6801, allocations: 175.9 kB / 1.028 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.6801, allocations: 0 / 1.028 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003333/0.6805, allocations: 222.8 kB / 1.028 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.253e-06/0.6805, allocations: 4 kB / 1.028 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-06/0.6805, allocations: 0 / 1.028 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-06/0.6805, allocations: 0 / 1.028 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.6806, allocations: 31.92 kB / 1.028 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-06/0.6806, allocations: 64 / 1.028 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.6807, allocations: 27.83 kB / 1.028 GB, free: 6.535 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.6808, allocations: 7.938 kB / 1.028 GB, free: 6.527 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.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.0001105/0.6809, allocations: 188.7 kB / 1.029 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-05/0.6809, allocations: 27.62 kB / 1.029 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.487e-05/0.681, allocations: 35.28 kB / 1.029 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.681, allocations: 4 kB / 1.029 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.681, allocations: 0 / 1.029 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.681, allocations: 3.938 kB / 1.029 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003876/0.6814, allocations: 417.2 kB / 1.029 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6815, allocations: 0 / 1.029 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.6816, allocations: 31.98 kB / 1.029 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.6816, allocations: 0 / 1.029 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.6817, allocations: 3.984 kB / 1.029 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.6817, allocations: 0 / 1.029 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.6817, allocations: 0 / 1.029 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006311/0.6823, allocations: 438.9 kB / 1.029 GB, free: 5.328 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.6824, allocations: 132.7 kB / 1.03 GB, free: 5.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.6825, allocations: 4 kB / 1.03 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.6826, allocations: 11.98 kB / 1.03 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.6827, allocations: 15.92 kB / 1.03 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.6827, allocations: 8 kB / 1.03 GB, free: 5.141 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002074/0.6829, allocations: 239 kB / 1.03 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6829, allocations: 4.062 kB / 1.03 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003799/0.6833, allocations: 87.62 kB / 1.03 GB, free: 4.816 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 (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.0001065/0.6834, allocations: 103.2 kB / 1.03 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005833/0.684, allocations: 292.1 kB / 1.03 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.684, allocations: 256 / 1.03 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.6842, allocations: 103.9 kB / 1.03 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000617/0.6848, allocations: 76.05 kB / 1.03 GB, free: 4.254 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.6859, allocations: 0.6683 MB / 1.031 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.6862, allocations: 0.7753 MB / 1.032 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001247/0.6863, allocations: 26.28 kB / 1.032 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.288e-05/0.6864, allocations: 19.44 kB / 1.032 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6864, allocations: 0 / 1.032 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of Templates: time 0.006238/0.6926, allocations: 3.096 MB / 1.035 GB, free: 15.66 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches