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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009289/0.000929, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 181.9 kB / 16.92 MB, free: 6.918 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.414/1.414, allocations: 223.3 MB / 241 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003478, allocations: 11.94 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7494/0.7498, allocations: 142.4 MB / 0.9557 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.002743/0.7526, allocations: 2.272 MB / 0.9579 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.7538, allocations: 0.8636 MB / 0.9588 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.754, allocations: 6.281 kB / 0.9588 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.7542, allocations: 51.7 kB / 0.9588 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.7543, allocations: 45.09 kB / 0.9589 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.7547, allocations: 216 kB / 0.9591 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003695/0.7551, allocations: 409.9 kB / 0.9595 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.7555, allocations: 214.1 kB / 0.9597 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.7556, allocations: 93.92 kB / 0.9598 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.7557, allocations: 103.5 kB / 0.9599 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.7557, allocations: 7.5 kB / 0.9599 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.485e-05/0.7558, allocations: 7.344 kB / 0.9599 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.848e-05/0.7558, allocations: 39.5 kB / 0.9599 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.509e-05/0.7559, allocations: 158.2 kB / 0.9601 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.7563, allocations: 0.4914 MB / 0.9605 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.7563, allocations: 0 / 0.9605 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.184e-06/0.7563, allocations: 0 / 0.9605 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.7563, allocations: 0 / 0.9605 GB, free: 3.824 MB / 0.7169 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.0007389/0.757, allocations: 0.5755 MB / 0.9611 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.7571, allocations: 9.625 kB / 0.9611 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.487e-05/0.7572, allocations: 41.09 kB / 0.9611 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.7576, allocations: 386 kB / 0.9615 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.7576, allocations: 23.88 kB / 0.9615 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.7577, allocations: 30.23 kB / 0.9616 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.7582, allocations: 333.3 kB / 0.9619 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.7582, allocations: 7.984 kB / 0.9619 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.7583, allocations: 10.69 kB / 0.9619 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.7583, allocations: 7.656 kB / 0.9619 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004984/0.7588, allocations: 244.4 kB / 0.9621 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.7602, allocations: 1.18 MB / 0.9633 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/0.7608, allocations: 250.2 kB / 0.9635 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.761, allocations: 99.14 kB / 0.9636 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.761, allocations: 2.375 kB / 0.9636 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.7611, allocations: 39.47 kB / 0.9637 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.855e-06/0.7611, allocations: 7.938 kB / 0.9637 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0007292/0.7618, allocations: 313.8 kB / 0.964 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.7619, allocations: 87.14 kB / 0.9641 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.7622, allocations: 325.2 kB / 0.9644 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.7623, allocations: 29.7 kB / 0.9644 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.7624, allocations: 199.6 kB / 0.9646 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.7624, allocations: 57.34 kB / 0.9646 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.7625, allocations: 23.86 kB / 0.9647 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.93e-05/0.7626, allocations: 342.3 kB / 0.965 GB, free: 192 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.7628, allocations: 92.42 kB / 0.9651 GB, free: 144 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.763, allocations: 123.6 kB / 0.9652 GB, free: 60 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004218/0.7634, allocations: 202.4 kB / 0.9654 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.7634, allocations: 0 / 0.9654 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005486/0.764, allocations: 270.4 kB / 0.9656 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.6e-05/0.7641, allocations: 112.5 kB / 0.9658 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.7641, allocations: 0 / 0.9658 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.7641, allocations: 7.844 kB / 0.9658 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.7643, allocations: 33.02 kB / 0.9658 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.7643, allocations: 0 / 0.9658 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.7644, allocations: 34.08 kB / 0.9658 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.7645, allocations: 3.75 kB / 0.9658 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.581e-06/0.7645, allocations: 6.625 kB / 0.9658 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003454/0.7648, allocations: 177.8 kB / 0.966 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/0.7648, allocations: 1.438 kB / 0.966 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.666e-06/0.7649, allocations: 1.281 kB / 0.966 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.765, allocations: 33.86 kB / 0.966 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.407e-06/0.765, allocations: 1.094 kB / 0.966 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.7651, allocations: 15.53 kB / 0.9661 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.7651, allocations: 13.19 kB / 0.9661 GB, free: 15.53 MB / 0.7325 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.0002312/0.7654, allocations: 250.5 kB / 0.9663 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.894e-05/0.7654, allocations: 28.88 kB / 0.9663 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.329e-05/0.7655, allocations: 36.59 kB / 0.9664 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.7655, allocations: 1.156 kB / 0.9664 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.7655, allocations: 0 / 0.9664 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7656, allocations: 1.062 kB / 0.9664 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.766, allocations: 409.1 kB / 0.9668 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.766, allocations: 0 / 0.9668 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.7662, allocations: 31.2 kB / 0.9668 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.7662, allocations: 1.094 kB / 0.9668 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.7663, allocations: 4.969 kB / 0.9668 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.7663, allocations: 1 kB / 0.9668 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.7663, allocations: 0 / 0.9668 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007895/0.7671, allocations: 464.2 kB / 0.9672 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.7672, allocations: 138.7 kB / 0.9674 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.967e-05/0.7673, allocations: 5.844 kB / 0.9674 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.7674, allocations: 12.81 kB / 0.9674 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.7675, allocations: 8.766 kB / 0.9674 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.7675, allocations: 10.98 kB / 0.9674 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002798/0.7678, allocations: 231.1 kB / 0.9676 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7678, allocations: 0 / 0.9676 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004299/0.7682, allocations: 95.62 kB / 0.9677 GB, free: 14.22 MB / 0.7325 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.0001696/0.7684, allocations: 100.8 kB / 0.9678 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007279/0.7692, allocations: 297.8 kB / 0.9681 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.7692, allocations: 0.9688 kB / 0.9681 GB, free: 14 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.7694, allocations: 109 kB / 0.9682 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007117/0.7701, allocations: 81.34 kB / 0.9683 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.7716, allocations: 0.7149 MB / 0.969 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.7721, allocations: 0.7756 MB / 0.9697 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.083e-05/0.7722, allocations: 20.75 kB / 0.9698 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of SimCode: time 2.9e-07/0.7722, allocations: 1.125 kB / 0.9698 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of Templates: time 0.007535/0.7798, allocations: 3.907 MB / 0.9736 GB, free: 10.6 MB / 0.7325 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