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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001308/0.001308, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001401/0.001401, allocations: 187 kB / 17.34 MB, free: 5.719 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.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.339/2.339, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 67.89 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.966/0.9684, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004174/0.9727, allocations: 2.617 MB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001735/0.9744, allocations: 0.9043 MB / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.9747, allocations: 7.312 kB / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002423/0.9749, allocations: 66.77 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.9751, allocations: 67.52 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.9757, allocations: 231.8 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005242/0.9762, allocations: 457.7 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003912/0.9766, allocations: 225 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.9767, allocations: 148.4 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.9769, allocations: 150.9 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.759e-05/0.977, allocations: 49.78 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.427e-05/0.9771, allocations: 50.12 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.01e-05/0.9772, allocations: 95.31 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.9773, allocations: 186.4 kB / 1.094 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007737/0.9781, allocations: 0.6183 MB / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.9781, allocations: 0.7812 kB / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.92e-07/0.9781, allocations: 0 / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.9781, allocations: 1.125 kB / 1.094 GB, free: 1.723 MB / 0.8575 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.0009074/0.979, allocations: 0.6544 MB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.9791, allocations: 9.031 kB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.958e-05/0.9792, allocations: 45.03 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005194/0.9797, allocations: 391.1 kB / 1.095 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.9798, allocations: 27.91 kB / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.929e-05/0.9798, allocations: 26.16 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006305/0.9805, allocations: 326.6 kB / 1.096 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.9805, allocations: 0.6562 kB / 1.096 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.9805, allocations: 10.53 kB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.9805, allocations: 10.81 kB / 1.096 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.9811, allocations: 234.9 kB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.9828, allocations: 1.161 MB / 1.097 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005565/0.9833, allocations: 234.1 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.9836, allocations: 102.9 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.9836, allocations: 2.438 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.9836, allocations: 32.14 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.9836, allocations: 0 / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=16): time 0.0007698/0.9844, allocations: 303.8 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.9845, allocations: 79.83 kB / 1.098 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004778/0.985, allocations: 329.6 kB / 1.098 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.985, allocations: 26.73 kB / 1.098 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.9852, allocations: 196.4 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.089e-05/0.9853, allocations: 58.5 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.738e-05/0.9854, allocations: 39.98 kB / 1.098 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.9855, allocations: 344.1 kB / 1.099 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.9857, allocations: 91.75 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.986, allocations: 115.5 kB / 1.099 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.9863, allocations: 188.6 kB / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.9864, allocations: 0 / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005219/0.9869, allocations: 255.7 kB / 1.099 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.9869, allocations: 5.312 kB / 1.099 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.9869, allocations: 2 kB / 1.099 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.9869, allocations: 9.734 kB / 1.099 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.9871, allocations: 29.42 kB / 1.099 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.9872, allocations: 1.375 kB / 1.099 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.9873, allocations: 27.64 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.9873, allocations: 5.031 kB / 1.099 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002622/0.9876, allocations: 196.7 kB / 1.1 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001792/0.9878, allocations: 102.2 kB / 1.1 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002797/0.9881, allocations: 176.2 kB / 1.1 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/0.9881, allocations: 0.7969 kB / 1.1 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003896/0.9885, allocations: 223.2 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.9885, allocations: 4.219 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.9885, allocations: 2.062 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.937e-06/0.9885, allocations: 5.906 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.9887, allocations: 28.27 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.9887, allocations: 6.844 kB / 1.1 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.9888, allocations: 18.48 kB / 1.1 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.9888, allocations: 12.66 kB / 1.1 GB, free: 13.65 MB / 0.8731 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.0001127/0.9889, allocations: 192 kB / 1.1 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.161e-05/0.989, allocations: 30.23 kB / 1.1 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.311e-05/0.9891, allocations: 36.03 kB / 1.1 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.9891, allocations: 5.5 kB / 1.1 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.9891, allocations: 0.7188 kB / 1.1 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.9891, allocations: 6.547 kB / 1.1 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005068/0.9896, allocations: 412.8 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.9896, allocations: 0.5625 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.9898, allocations: 29.11 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.9898, allocations: 0.5312 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.9898, allocations: 1.375 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.9899, allocations: 1.375 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.9899, allocations: 0.8125 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007103/0.9906, allocations: 441.1 kB / 1.101 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.9907, allocations: 129.5 kB / 1.101 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.216e-05/0.9908, allocations: 6.406 kB / 1.101 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.9909, allocations: 7.875 kB / 1.101 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.991, allocations: 17.03 kB / 1.101 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.991, allocations: 7.344 kB / 1.101 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002879/0.9913, allocations: 239.1 kB / 1.102 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9913, allocations: 0 / 1.102 GB, free: 12.55 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004342/0.9917, allocations: 88.59 kB / 1.102 GB, free: 12.53 MB / 0.8731 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.0001308/0.9919, allocations: 101.6 kB / 1.102 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006526/0.9925, allocations: 288.3 kB / 1.102 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9926, allocations: 1.125 kB / 1.102 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.9928, allocations: 95.17 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.9933, allocations: 86.72 kB / 1.102 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.9946, allocations: 0.5763 MB / 1.103 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.995, allocations: 0.778 MB / 1.104 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.858e-05/0.9951, allocations: 26.16 kB / 1.104 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.9951, allocations: 0 / 1.104 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of Templates: time 0.01105/1.006, allocations: 3.991 MB / 1.108 GB, free: 10.69 MB / 0.8731 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/jenkins1/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