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.001127/0.001127, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008551/0.008552, allocations: 170.1 kB / 16.27 MB, free: 6.652 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 / 240.3 MB, free: 5.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.767/2.767, allocations: 462.7 MB / 0.7364 GB, free: 308 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003538, allocations: 6.062 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3012, allocations: 159.6 MB / 1.059 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.002849/0.3041, allocations: 2.279 MB / 1.061 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3056, allocations: 0.8844 MB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.3058, allocations: 11.94 kB / 1.062 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.3059, allocations: 39.66 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.3061, allocations: 51.58 kB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.3065, allocations: 207.8 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003982/0.307, allocations: 415.6 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.3073, allocations: 205.2 kB / 1.063 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.3074, allocations: 95.38 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.3075, allocations: 95.25 kB / 1.063 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.103e-05/0.3076, allocations: 8 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.33e-05/0.3076, allocations: 8 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.043e-05/0.3076, allocations: 43.66 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.3078, allocations: 164.7 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004675/0.3082, allocations: 0.553 MB / 1.064 GB, free: 448 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3083, allocations: 0 / 1.064 GB, free: 448 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3083, allocations: 0 / 1.064 GB, free: 448 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3083, allocations: 0 / 1.064 GB, free: 448 kB / 0.8106 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.0007969/0.3091, allocations: 0.5806 MB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.3091, allocations: 8.031 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.094e-05/0.3092, allocations: 40.47 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.3096, allocations: 379.2 kB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.3096, allocations: 20.94 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.3097, allocations: 28.38 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005989/0.3103, allocations: 333.7 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3103, allocations: 0 / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.914e-05/0.3104, allocations: 12 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3104, allocations: 11.94 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005136/0.3109, allocations: 242.2 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.3125, allocations: 1.182 MB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005011/0.313, allocations: 246.8 kB / 1.067 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.3132, allocations: 104.8 kB / 1.067 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.3133, allocations: 4 kB / 1.067 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.3133, allocations: 30.56 kB / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.3133, allocations: 0 / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0006876/0.314, allocations: 327.4 kB / 1.067 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.3141, allocations: 81.05 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003464/0.3144, allocations: 332.4 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3144, allocations: 25.7 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.3146, allocations: 200.1 kB / 1.068 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.605e-05/0.3147, allocations: 59.2 kB / 1.068 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.067e-05/0.3147, allocations: 25.7 kB / 1.068 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3148, allocations: 338.8 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.315, allocations: 91.84 kB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/0.3153, allocations: 128.6 kB / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/0.3157, allocations: 204.2 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3157, allocations: 0 / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005077/0.3162, allocations: 265.1 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/0.3163, allocations: 110.7 kB / 1.069 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3163, allocations: 0 / 1.069 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3163, allocations: 3.938 kB / 1.069 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.3165, allocations: 31.98 kB / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3165, allocations: 0 / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.3166, allocations: 43.64 kB / 1.069 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.3167, allocations: 8 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5e-06/0.3167, allocations: 5.25 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003226/0.317, allocations: 171.9 kB / 1.069 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.317, allocations: 4 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-06/0.317, allocations: 64 / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.3172, allocations: 31.98 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-06/0.3172, allocations: 0 / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.3173, allocations: 23.75 kB / 1.069 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3173, allocations: 4 kB / 1.069 GB, free: 10.5 MB / 0.8262 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.000213/0.3175, allocations: 246.5 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.3176, allocations: 31.62 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.2e-05/0.3177, allocations: 35.28 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3177, allocations: 0 / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3177, allocations: 8 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3177, allocations: 0 / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004361/0.3181, allocations: 409.3 kB / 1.07 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3181, allocations: 0 / 1.07 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.3183, allocations: 31.92 kB / 1.07 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.3183, allocations: 4 kB / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.3184, allocations: 0 / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3184, allocations: 0 / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3184, allocations: 0 / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007282/0.3191, allocations: 463.3 kB / 1.07 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.3192, allocations: 132.7 kB / 1.07 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.3193, allocations: 4 kB / 1.07 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.3194, allocations: 19.94 kB / 1.07 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.3195, allocations: 7.984 kB / 1.07 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.3195, allocations: 7.984 kB / 1.07 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000246/0.3198, allocations: 235.1 kB / 1.071 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3198, allocations: 0 / 1.071 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004181/0.3202, allocations: 95.59 kB / 1.071 GB, free: 8.719 MB / 0.8262 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.0001134/0.3203, allocations: 107.1 kB / 1.071 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006173/0.3209, allocations: 303.8 kB / 1.071 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.321, allocations: 0 / 1.071 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.3212, allocations: 99.91 kB / 1.071 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005958/0.3218, allocations: 83.16 kB / 1.071 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.3228, allocations: 0.6754 MB / 1.072 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.3232, allocations: 0.7755 MB / 1.073 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001229/0.3233, allocations: 30.28 kB / 1.073 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.408e-05/0.3234, allocations: 19.44 kB / 1.073 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.3234, allocations: 0 / 1.073 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of Templates: time 0.006951/0.3303, allocations: 2.953 MB / 1.076 GB, free: 3.66 MB / 0.8262 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