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.008118/0.008127, allocations: 100.2 kB / 15.73 MB, free: 6.469 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.00183/0.00183, allocations: 193.1 kB / 16.67 MB, free: 6.379 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.402/1.402, allocations: 222.9 MB / 240.3 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.769/2.769, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 60.09 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3232, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003997/0.3272, allocations: 2.623 MB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3288, allocations: 0.9039 MB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.329, allocations: 15.94 kB / 1.211 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002191/0.3292, allocations: 63.39 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.3294, allocations: 59.39 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.3299, allocations: 241.6 kB / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.3303, allocations: 455.6 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003248/0.3307, allocations: 221.7 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.3308, allocations: 143.5 kB / 1.212 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.331, allocations: 155.1 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.331, allocations: 48 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.669e-05/0.3311, allocations: 52 kB / 1.213 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.171e-05/0.3312, allocations: 83.72 kB / 1.213 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.3313, allocations: 191 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005172/0.3319, allocations: 0.6191 MB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3319, allocations: 4 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3319, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.3319, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 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.0008914/0.3328, allocations: 0.6467 MB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.3328, allocations: 8.031 kB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.3329, allocations: 48.38 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004879/0.3334, allocations: 387.3 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.3335, allocations: 24.92 kB / 1.214 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.3335, allocations: 28.38 kB / 1.215 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.334, allocations: 329.7 kB / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3341, allocations: 0 / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.3341, allocations: 12 kB / 1.215 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.3341, allocations: 8 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004585/0.3346, allocations: 230.1 kB / 1.215 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.336, allocations: 1.155 MB / 1.216 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004794/0.3365, allocations: 238.8 kB / 1.216 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.3367, allocations: 92.83 kB / 1.217 GB, free: 424 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.3367, allocations: 0 / 1.217 GB, free: 424 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.3368, allocations: 42.56 kB / 1.217 GB, free: 372 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.082e-06/0.3368, allocations: 0 / 1.217 GB, free: 372 kB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.000635/0.3374, allocations: 301.1 kB / 1.217 GB, free: 64 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/0.3375, allocations: 77.11 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000311/0.3378, allocations: 336.3 kB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3378, allocations: 33.7 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.338, allocations: 196.1 kB / 1.217 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.931e-05/0.338, allocations: 59.19 kB / 1.218 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.243e-05/0.3381, allocations: 41.7 kB / 1.218 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3382, allocations: 334.8 kB / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.3384, allocations: 92.75 kB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.3386, allocations: 120.8 kB / 1.218 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.339, allocations: 187.8 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.339, allocations: 0 / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004466/0.3395, allocations: 261.2 kB / 1.218 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3395, allocations: 5.25 kB / 1.219 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3395, allocations: 0 / 1.219 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.3395, allocations: 4 kB / 1.219 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.3397, allocations: 27.98 kB / 1.219 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3397, allocations: 0 / 1.219 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/0.3398, allocations: 39.61 kB / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.3399, allocations: 4 kB / 1.219 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002247/0.3401, allocations: 196.2 kB / 1.219 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001461/0.3402, allocations: 104 kB / 1.219 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002478/0.3405, allocations: 156.3 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.62e-07/0.3405, allocations: 0 / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.000342/0.3409, allocations: 233.2 kB / 1.219 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.3409, allocations: 10.19 kB / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-06/0.3409, allocations: 0 / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-06/0.3409, allocations: 0 / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.341, allocations: 35.92 kB / 1.219 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.341, allocations: 0 / 1.219 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.3411, allocations: 19.84 kB / 1.219 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.3412, allocations: 15.92 kB / 1.219 GB, free: 13.42 MB / 0.9825 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.0001072/0.3413, allocations: 192.3 kB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.3413, allocations: 23.72 kB / 1.22 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.131e-05/0.3414, allocations: 35.28 kB / 1.22 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.82e-06/0.3414, allocations: 4 kB / 1.22 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3414, allocations: 0 / 1.22 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3414, allocations: 3.938 kB / 1.22 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004158/0.3419, allocations: 405.3 kB / 1.22 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3419, allocations: 0 / 1.22 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.342, allocations: 23.98 kB / 1.22 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.342, allocations: 4 kB / 1.22 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.3421, allocations: 11.94 kB / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3421, allocations: 0 / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3421, allocations: 3.938 kB / 1.22 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006624/0.3428, allocations: 441.4 kB / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3429, allocations: 136.7 kB / 1.221 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.3429, allocations: 4.062 kB / 1.221 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.3431, allocations: 8 kB / 1.221 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.3431, allocations: 19.92 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.3431, allocations: 7.984 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002019/0.3433, allocations: 231.1 kB / 1.221 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3433, allocations: 0 / 1.221 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003682/0.3437, allocations: 91.59 kB / 1.221 GB, free: 11.72 MB / 0.9825 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.0001127/0.3438, allocations: 103.2 kB / 1.221 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000551/0.3444, allocations: 275.8 kB / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.3444, allocations: 4 kB / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.3446, allocations: 95.84 kB / 1.221 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005364/0.3451, allocations: 98.47 kB / 1.221 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009492/0.3461, allocations: 0.5615 MB / 1.222 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.3464, allocations: 0.7714 MB / 1.223 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.3465, allocations: 30.22 kB / 1.223 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.3466, allocations: 23.44 kB / 1.223 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.3466, allocations: 0 / 1.223 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of Templates: time 0.0064/0.353, allocations: 3.242 MB / 1.226 GB, free: 6.516 MB / 0.9825 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/jenkins/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