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.0009955/0.0009956, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.008839/0.008838, allocations: 171.2 kB / 16.26 MB, free: 6.613 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.511/1.511, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.639/2.639, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.000379, allocations: 11.98 kB / 0.8728 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8353/0.8357, allocations: 153.8 MB / 1.023 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003472/0.8392, allocations: 2.261 MB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.841, allocations: 0.8768 MB / 1.026 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004025/0.8414, allocations: 11.94 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002545/0.8417, allocations: 47.58 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.842, allocations: 47.66 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006605/0.8426, allocations: 215.8 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006001/0.8433, allocations: 399.7 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003811/0.8436, allocations: 217.1 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.8438, allocations: 83.47 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.844, allocations: 111.2 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.844, allocations: 8 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.485e-05/0.844, allocations: 8 kB / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.662e-05/0.8441, allocations: 39.73 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.8442, allocations: 160.7 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004972/0.8447, allocations: 0.5507 MB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8447, allocations: 0 / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8447, allocations: 0 / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.843e-05/0.8448, allocations: 0 / 1.028 GB, free: 10.82 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.001061/0.8458, allocations: 0.5846 MB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.8459, allocations: 11.98 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.846, allocations: 40.47 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/0.8466, allocations: 379.2 kB / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.8466, allocations: 20.94 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.8467, allocations: 28.38 kB / 1.029 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006588/0.8474, allocations: 337.7 kB / 1.029 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.8474, allocations: 7.984 kB / 1.029 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.8474, allocations: 8 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.8474, allocations: 8 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005284/0.848, allocations: 250.1 kB / 1.03 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.8496, allocations: 1.178 MB / 1.031 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005278/0.8501, allocations: 254.8 kB / 1.031 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.8504, allocations: 111.4 kB / 1.031 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.8504, allocations: 0 / 1.031 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.8504, allocations: 34.5 kB / 1.031 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.8504, allocations: 7.938 kB / 1.031 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.000724/0.8512, allocations: 317.2 kB / 1.031 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.8512, allocations: 77.11 kB / 1.031 GB, free: 7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003948/0.8516, allocations: 328.5 kB / 1.032 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.8517, allocations: 33.7 kB / 1.032 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.8518, allocations: 196 kB / 1.032 GB, free: 6.434 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.264e-05/0.8519, allocations: 59.19 kB / 1.032 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.8519, allocations: 25.72 kB / 1.032 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.8521, allocations: 338.8 kB / 1.032 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.8523, allocations: 83.97 kB / 1.032 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.8526, allocations: 128.9 kB / 1.033 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/0.853, allocations: 202.5 kB / 1.033 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.853, allocations: 0 / 1.033 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006146/0.8536, allocations: 270.8 kB / 1.033 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.8537, allocations: 106.7 kB / 1.033 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.8537, allocations: 0 / 1.033 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.8537, allocations: 3.938 kB / 1.033 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.8539, allocations: 43.98 kB / 1.033 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.854, allocations: 7.984 kB / 1.033 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.8541, allocations: 19.84 kB / 1.033 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.8541, allocations: 4 kB / 1.033 GB, free: 5.113 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.622e-06/0.8541, allocations: 5.719 kB / 1.033 GB, free: 5.109 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003467/0.8545, allocations: 183.8 kB / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-06/0.8545, allocations: 0 / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-06/0.8545, allocations: 0 / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.8546, allocations: 31.92 kB / 1.033 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-06/0.8547, allocations: 0 / 1.033 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.8548, allocations: 23.75 kB / 1.033 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.8548, allocations: 4 kB / 1.033 GB, free: 4.871 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.0002237/0.855, allocations: 249.5 kB / 1.034 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.79e-05/0.8551, allocations: 35.69 kB / 1.034 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.996e-05/0.8552, allocations: 31.28 kB / 1.034 GB, free: 4.551 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.8552, allocations: 4 kB / 1.034 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.8552, allocations: 3.984 kB / 1.034 GB, free: 4.543 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.8552, allocations: 0 / 1.034 GB, free: 4.543 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004488/0.8557, allocations: 405.3 kB / 1.034 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.8557, allocations: 0 / 1.034 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.8558, allocations: 31.98 kB / 1.034 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.8559, allocations: 0 / 1.034 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.8559, allocations: 0 / 1.034 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.8559, allocations: 8 kB / 1.034 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8559, allocations: 3.938 kB / 1.034 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000802/0.8567, allocations: 458.9 kB / 1.035 GB, free: 3.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.8569, allocations: 132.7 kB / 1.035 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.857, allocations: 12 kB / 1.035 GB, free: 3.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.8571, allocations: 15.98 kB / 1.035 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.8572, allocations: 7.984 kB / 1.035 GB, free: 3.406 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.8572, allocations: 4 kB / 1.035 GB, free: 3.402 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002457/0.8574, allocations: 239.1 kB / 1.035 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8575, allocations: 3.938 kB / 1.035 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004051/0.8579, allocations: 95.53 kB / 1.035 GB, free: 3.07 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.0001383/0.858, allocations: 101.6 kB / 1.035 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006193/0.8586, allocations: 302.6 kB / 1.035 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.8586, allocations: 0 / 1.035 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.8588, allocations: 104.1 kB / 1.036 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.8595, allocations: 80.95 kB / 1.036 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.8606, allocations: 0.6754 MB / 1.036 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.861, allocations: 0.7755 MB / 1.037 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001275/0.8611, allocations: 26.22 kB / 1.037 GB, free: 0.9609 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.598e-05/0.8612, allocations: 27.44 kB / 1.037 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.8612, allocations: 0 / 1.037 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of Templates: time 0.007151/0.8683, allocations: 2.933 MB / 1.04 GB, free: 14.04 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