Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.475/1.475, allocations: 249.5 MB / 257 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 176.9 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.682/1.682, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009398/0.00094, allocations: 96.14 kB / 0.6714 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.351e-05/2.354e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1863, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6297/0.816, allocations: 132.6 MB / 1.015 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.8163, allocations: 71.7 kB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006538/0.8229, allocations: 2.723 MB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8229, allocations: 4 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.1e-05/0.8229, allocations: 0 / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005372/0.8235, allocations: 433.7 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.8235, allocations: 8.031 kB / 1.018 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.8236, allocations: 27.55 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.8238, allocations: 200.5 kB / 1.018 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.8238, allocations: 0 / 1.018 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.8238, allocations: 15.44 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.829e-05/0.8239, allocations: 33.62 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.8241, allocations: 122.2 kB / 1.018 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.8241, allocations: 4 kB / 1.018 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.8242, allocations: 3.938 kB / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.8242, allocations: 0 / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008687/0.825, allocations: 0.7201 MB / 1.019 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.164e-05/0.8251, allocations: 37.69 kB / 1.019 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.579e-05/0.8252, allocations: 18.11 kB / 1.019 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.8252, allocations: 4 kB / 1.019 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/0.8253, allocations: 105.1 kB / 1.019 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.8254, allocations: 4 kB / 1.019 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.000231/0.8256, allocations: 101.4 kB / 1.019 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/0.8257, allocations: 132.5 kB / 1.019 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.8258, allocations: 139.2 kB / 1.019 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.8258, allocations: 29.69 kB / 1.02 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.241e-05/0.8259, allocations: 121.4 kB / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.328e-05/0.826, allocations: 34.61 kB / 1.02 GB, free: 400 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.826, allocations: 0 / 1.02 GB, free: 400 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.8261, allocations: 338.2 kB / 1.02 GB, free: 60 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.467e-05/0.8262, allocations: 19.06 kB / 1.02 GB, free: 48 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.8263, allocations: 105.8 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.916e-05/0.8263, allocations: 39.17 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.8263, allocations: 3.953 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001917/0.8265, allocations: 131.6 kB / 1.02 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.8266, allocations: 9.719 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.8266, allocations: 4.406 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.8266, allocations: 8 kB / 1.02 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.8268, allocations: 34.86 kB / 1.02 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.8268, allocations: 4 kB / 1.02 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.8269, allocations: 23.92 kB / 1.02 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.8269, allocations: 8 kB / 1.02 GB, free: 15.67 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.493e-05/0.827, allocations: 118.7 kB / 1.02 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.827, allocations: 19.77 kB / 1.02 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.8271, allocations: 16.16 kB / 1.02 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.8271, allocations: 4 kB / 1.02 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.8271, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.8271, allocations: 7.984 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005503/0.8277, allocations: 464.5 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.8277, allocations: 0 / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.8278, allocations: 23.36 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.8278, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.8279, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.8279, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.8279, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.8282, allocations: 348.8 kB / 1.021 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.8283, allocations: 96.95 kB / 1.021 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.8283, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.8285, allocations: 19.98 kB / 1.021 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.8285, allocations: 15.19 kB / 1.021 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.8285, allocations: 4 kB / 1.021 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.785e-05/0.8286, allocations: 123.3 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8286, allocations: 0 / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003042/0.8289, allocations: 26.69 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001885/0.8291, allocations: 111.2 kB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.8293, allocations: 74.61 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8293, allocations: 0 / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.777e-05/0.8294, allocations: 34.5 kB / 1.022 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.8298, allocations: 43.77 kB / 1.022 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005437/0.8303, allocations: 251.3 kB / 1.022 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.8306, allocations: 0.724 MB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.849e-05/0.8307, allocations: 4.781 kB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.8308, allocations: 23.06 kB / 1.023 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of SimCode: time 2.81e-07/0.8308, allocations: 3.938 kB / 1.023 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of Templates: time 0.003443/0.8342, allocations: 1.275 MB / 1.024 GB, free: 11.88 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable intDef.y_reset_in in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat. Warning: Get data of variable intDef.y_reset_in from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat failed! Error: Could not read variable intWitRes1.y_reset_in in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat. Warning: Get data of variable intWitRes1.y_reset_in from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat failed! " Variables in the reference:time,cons.y,booleanPulse.y,intDef.y_start,intDef.y,intDef.y_reset_in,intWitRes1.y_start,intWitRes1.y,intWitRes1.y_reset_in,intWitRes2.y_start,intWitRes2.y,intWitRes2.y_reset_in Variables in the result:booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,cons.k,cons.y,intDef.k,intDef.reset,intDef.y,intDef.y_reset,intDef.y_start,intNoReset.k,intNoReset.reset,intNoReset.y_reset,intNoReset.y_start,intWitRes1.k,intWitRes1.reset,intWitRes1.y,intWitRes1.y_reset,intWitRes1.y_start,intWitRes2.k,intWitRes2.reset,intWitRes2.y,intWitRes2.y_reset,intWitRes2.y_reset_in,intWitRes2.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,sampleTrigger.period,sampleTrigger.startTime,time