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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001098/0.001098, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001217/0.001217, allocations: 189.2 kB / 16.25 MB, free: 6.621 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.337/1.337, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.789/2.789, allocations: 472.6 MB / 0.7448 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.45 kB / 0.9116 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3231, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.0042/0.3273, allocations: 2.647 MB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001578/0.3289, allocations: 0.8806 MB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002261/0.3292, allocations: 11.94 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002268/0.3294, allocations: 47.64 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.3296, allocations: 51.59 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.3301, allocations: 219.8 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.3306, allocations: 447.7 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003613/0.331, allocations: 229.1 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.3311, allocations: 151.3 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.3313, allocations: 143.3 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.626e-05/0.3313, allocations: 48 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.443e-05/0.3314, allocations: 55.94 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.3315, allocations: 95.69 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.3316, allocations: 191 kB / 1.073 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000535/0.3322, allocations: 0.6001 MB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3322, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3322, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.637e-06/0.3322, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 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.0009486/0.3332, allocations: 0.6506 MB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3332, allocations: 8.031 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.786e-05/0.3333, allocations: 40.47 kB / 1.074 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004253/0.3337, allocations: 383.2 kB / 1.074 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.3338, allocations: 20.94 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.979e-05/0.3338, allocations: 28.38 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/0.3344, allocations: 325.7 kB / 1.075 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3344, allocations: 3.938 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.3344, allocations: 8 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.3344, allocations: 8 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004445/0.3349, allocations: 238.1 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.3363, allocations: 1.163 MB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.3368, allocations: 234.8 kB / 1.076 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.337, allocations: 93.39 kB / 1.076 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.337, allocations: 8 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.3371, allocations: 38.5 kB / 1.077 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.3371, allocations: 0 / 1.077 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0006409/0.3377, allocations: 298.4 kB / 1.077 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.3378, allocations: 85.11 kB / 1.077 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.3381, allocations: 332.5 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.3381, allocations: 29.7 kB / 1.077 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.3383, allocations: 196.1 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.381e-05/0.3383, allocations: 55.19 kB / 1.077 GB, free: 468 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-05/0.3384, allocations: 41.7 kB / 1.077 GB, free: 420 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3385, allocations: 342.8 kB / 1.078 GB, free: 68 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.3387, allocations: 80.91 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.3389, allocations: 123.4 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.3393, allocations: 188 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3393, allocations: 4.031 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004581/0.3398, allocations: 254.7 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3398, allocations: 8 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3398, allocations: 0 / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3398, allocations: 0 / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.34, allocations: 27.98 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.34, allocations: 7.938 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.3402, allocations: 39.67 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.3402, allocations: 4 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002391/0.3405, allocations: 204 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001484/0.3406, allocations: 101.8 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002539/0.3409, allocations: 164 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.587e-06/0.3409, allocations: 7.922 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003512/0.3412, allocations: 229.1 kB / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/0.3413, allocations: 5.562 kB / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-06/0.3413, allocations: 0 / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.687e-06/0.3413, allocations: 4 kB / 1.079 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3414, allocations: 28 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.3414, allocations: 3.984 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3415, allocations: 12 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.3416, allocations: 15.94 kB / 1.079 GB, free: 14.53 MB / 0.8419 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.0001228/0.3417, allocations: 192.2 kB / 1.079 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.3418, allocations: 31.62 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.493e-05/0.3418, allocations: 39.22 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3418, allocations: 0 / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3419, allocations: 0 / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3419, allocations: 7.922 kB / 1.08 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004052/0.3423, allocations: 405.2 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3423, allocations: 0 / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.3425, allocations: 31.98 kB / 1.08 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3425, allocations: 3.938 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.3425, allocations: 4 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3425, allocations: 0 / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3425, allocations: 4 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006857/0.3432, allocations: 437 kB / 1.08 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.3433, allocations: 132.6 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.3434, allocations: 4 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.3435, allocations: 11.98 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.448e-05/0.3436, allocations: 15.92 kB / 1.081 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.3436, allocations: 4 kB / 1.081 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002266/0.3438, allocations: 231.1 kB / 1.081 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3439, allocations: 0 / 1.081 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003871/0.3442, allocations: 91.59 kB / 1.081 GB, free: 12.84 MB / 0.8419 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.0001153/0.3444, allocations: 107.2 kB / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005819/0.345, allocations: 291.8 kB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.345, allocations: 0 / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.3452, allocations: 100.1 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.3458, allocations: 91.75 kB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.3469, allocations: 0.6604 MB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.3472, allocations: 0.7792 MB / 1.083 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001333/0.3474, allocations: 30.27 kB / 1.083 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.055e-05/0.3474, allocations: 19.44 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of SimCode: time 2.8e-07/0.3474, allocations: 0 / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of Templates: time 0.006423/0.3539, allocations: 3.091 MB / 1.086 GB, free: 7.656 MB / 0.8419 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