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.008692/0.008693, allocations: 102.3 kB / 15.73 MB, free: 5.988 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.001795/0.001796, allocations: 194.7 kB / 16.67 MB, free: 5.926 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.572/1.572, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.742/2.742, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.91 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3335, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003902/0.3375, allocations: 2.608 MB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.339, allocations: 0.9078 MB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.3391, allocations: 11.94 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.3394, allocations: 67.33 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.3395, allocations: 67.41 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.34, allocations: 235.7 kB / 1.212 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.3404, allocations: 451.7 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.3408, allocations: 225.7 kB / 1.212 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.341, allocations: 151.4 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.3411, allocations: 147.2 kB / 1.212 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.624e-05/0.3412, allocations: 52 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.295e-05/0.3413, allocations: 48 kB / 1.213 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.524e-05/0.3413, allocations: 95.64 kB / 1.213 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.3415, allocations: 191 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005166/0.342, allocations: 0.6152 MB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.342, allocations: 0 / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.403e-06/0.342, allocations: 0 / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.342, allocations: 0 / 1.213 GB, free: 3.781 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.0008938/0.3429, allocations: 0.6468 MB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 9.678e-05/0.343, allocations: 12.03 kB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/0.3431, allocations: 48.38 kB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.3436, allocations: 383.3 kB / 1.214 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.3436, allocations: 20.94 kB / 1.214 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.3437, allocations: 28.38 kB / 1.215 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000554/0.3443, allocations: 329.6 kB / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.3443, allocations: 3.984 kB / 1.215 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.3443, allocations: 16 kB / 1.215 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3443, allocations: 8 kB / 1.215 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004756/0.3448, allocations: 238.1 kB / 1.215 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.3463, allocations: 1.155 MB / 1.216 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000468/0.3468, allocations: 232.7 kB / 1.216 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.347, allocations: 98.09 kB / 1.217 GB, free: 428 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.347, allocations: 4 kB / 1.217 GB, free: 424 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.3471, allocations: 30.56 kB / 1.217 GB, free: 384 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 4.338e-06/0.3471, allocations: 0 / 1.217 GB, free: 384 kB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.0006482/0.3477, allocations: 307.8 kB / 1.217 GB, free: 72 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/0.3478, allocations: 85.09 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.3481, allocations: 332.4 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.3482, allocations: 25.7 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.3483, allocations: 192.2 kB / 1.217 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.409e-05/0.3484, allocations: 55.19 kB / 1.218 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.435e-05/0.3485, allocations: 41.7 kB / 1.218 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3486, allocations: 342.8 kB / 1.218 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.3488, allocations: 88.83 kB / 1.218 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.349, allocations: 115.4 kB / 1.218 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.3494, allocations: 196 kB / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3495, allocations: 7.938 kB / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004408/0.3499, allocations: 246.9 kB / 1.218 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.3499, allocations: 4 kB / 1.218 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.3499, allocations: 8.062 kB / 1.219 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.35, allocations: 0 / 1.219 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.3501, allocations: 31.92 kB / 1.219 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.3502, allocations: 4 kB / 1.219 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.3503, allocations: 35.61 kB / 1.219 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.3503, allocations: 4 kB / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002212/0.3506, allocations: 196.1 kB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001464/0.3507, allocations: 109.6 kB / 1.219 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002515/0.351, allocations: 160.5 kB / 1.219 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.847e-06/0.351, allocations: 7.984 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003461/0.3513, allocations: 225.1 kB / 1.219 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.3513, allocations: 8 kB / 1.219 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-06/0.3514, allocations: 96 / 1.219 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-06/0.3514, allocations: 4 kB / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.3515, allocations: 31.92 kB / 1.219 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-06/0.3515, allocations: 0 / 1.219 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.3516, allocations: 19.84 kB / 1.219 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3516, allocations: 11.88 kB / 1.219 GB, free: 13.43 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.0001115/0.3518, allocations: 184.3 kB / 1.219 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.888e-05/0.3518, allocations: 23.72 kB / 1.22 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.15e-05/0.3519, allocations: 35.28 kB / 1.22 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.3519, allocations: 8 kB / 1.22 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3519, allocations: 3.984 kB / 1.22 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3519, allocations: 3.938 kB / 1.22 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005104/0.3524, allocations: 405.3 kB / 1.22 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3524, allocations: 0 / 1.22 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.3526, allocations: 31.92 kB / 1.22 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3526, allocations: 8 kB / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.3526, allocations: 0 / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3527, allocations: 0 / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3527, allocations: 0 / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006849/0.3533, allocations: 439 kB / 1.22 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.3535, allocations: 136.6 kB / 1.221 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.96e-05/0.3535, allocations: 7.938 kB / 1.221 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.3537, allocations: 15.98 kB / 1.221 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.3538, allocations: 11.98 kB / 1.221 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.3538, allocations: 8 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000228/0.3541, allocations: 235.1 kB / 1.221 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3541, allocations: 0 / 1.221 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003796/0.3545, 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.0001358/0.3546, allocations: 95.25 kB / 1.221 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006051/0.3552, allocations: 293.3 kB / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3552, allocations: 0 / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.3554, 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.0005435/0.356, allocations: 86.2 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.001056/0.357, allocations: 0.555 MB / 1.222 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.3576, allocations: 0.7753 MB / 1.223 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001245/0.3577, allocations: 30.28 kB / 1.223 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.3578, allocations: 19.44 kB / 1.223 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3578, allocations: 0 / 1.223 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of Templates: time 0.006787/0.3646, allocations: 3.189 MB / 1.226 GB, free: 6.578 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