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.386/1.386, allocations: 251.9 MB / 266.9 MB, free: 10.87 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 187.6 kB / 326.5 MB, free: 2.215 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.774/1.774, allocations: 205.4 MB / 0.5775 GB, free: 20.5 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.0008717/0.0008717, allocations: 78.45 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003253, allocations: 14.91 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2773, allocations: 106.3 MB / 0.9001 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.19/0.4673, allocations: 132.4 MB / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.4677, allocations: 75.95 kB / 1.029 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006781/0.4745, allocations: 2.739 MB / 1.032 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.505e-06/0.4745, allocations: 0 / 1.032 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.667e-05/0.4745, allocations: 4 kB / 1.032 GB, free: 8.922 MB / 0.6823 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.000652/0.4752, allocations: 447.2 kB / 1.033 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.4753, allocations: 8.031 kB / 1.033 GB, free: 8.426 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.428e-05/0.4753, allocations: 19.8 kB / 1.033 GB, free: 8.406 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.4757, allocations: 207.6 kB / 1.033 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.4757, allocations: 8 kB / 1.033 GB, free: 8.152 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.4757, allocations: 12 kB / 1.033 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.476, allocations: 153.9 kB / 1.033 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.4761, allocations: 3.984 kB / 1.033 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.4761, allocations: 11.98 kB / 1.033 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.4761, allocations: 0 / 1.033 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.4763, allocations: 79.89 kB / 1.033 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.4774, allocations: 0.7666 MB / 1.034 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.4776, allocations: 54.55 kB / 1.034 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.4776, allocations: 0 / 1.034 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.4779, allocations: 138.7 kB / 1.034 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.4779, allocations: 0 / 1.034 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0004904/0.4784, allocations: 173.6 kB / 1.034 GB, free: 6.645 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.988e-05/0.4785, allocations: 136.6 kB / 1.034 GB, free: 6.48 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.4787, allocations: 173.7 kB / 1.034 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.4787, allocations: 29.7 kB / 1.034 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.4788, allocations: 118.1 kB / 1.035 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.586e-05/0.4788, allocations: 27.53 kB / 1.035 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.245e-06/0.4789, allocations: 7.938 kB / 1.035 GB, free: 6.113 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.479, allocations: 334.8 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.4792, allocations: 39.97 kB / 1.035 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.4793, allocations: 126.7 kB / 1.035 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.4795, allocations: 55.92 kB / 1.035 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4795, allocations: 0 / 1.035 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003597/0.4798, allocations: 201.1 kB / 1.035 GB, free: 5.316 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4799, allocations: 4 kB / 1.035 GB, free: 5.312 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.4799, allocations: 4.406 kB / 1.035 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.4799, allocations: 8 kB / 1.035 GB, free: 5.301 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.48, allocations: 36.17 kB / 1.035 GB, free: 5.266 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.4801, allocations: 7.984 kB / 1.035 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.4802, allocations: 31.83 kB / 1.035 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.4802, allocations: 4 kB / 1.035 GB, free: 5.223 MB / 0.6823 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 () * Number of clocked 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 0.0001377/0.4804, allocations: 153.1 kB / 1.036 GB, free: 5.066 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.4804, allocations: 15.81 kB / 1.036 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/0.4804, allocations: 17.41 kB / 1.036 GB, free: 5.039 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4805, allocations: 0 / 1.036 GB, free: 5.039 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.4805, allocations: 4 kB / 1.036 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4805, allocations: 3.984 kB / 1.036 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007634/0.4812, allocations: 0.5174 MB / 1.036 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4813, allocations: 0 / 1.036 GB, free: 4.457 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.4814, allocations: 23.97 kB / 1.036 GB, free: 4.434 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.4814, allocations: 3.984 kB / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.4814, allocations: 11.98 kB / 1.036 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4814, allocations: 0 / 1.036 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4814, allocations: 4 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005551/0.482, allocations: 409.2 kB / 1.037 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.46e-05/0.4821, allocations: 92.88 kB / 1.037 GB, free: 3.863 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.716e-05/0.4821, allocations: 12 kB / 1.037 GB, free: 3.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.4823, allocations: 16.03 kB / 1.037 GB, free: 3.836 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.4824, allocations: 15.97 kB / 1.037 GB, free: 3.82 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.4824, allocations: 4 kB / 1.037 GB, free: 3.816 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001086/0.4825, allocations: 139 kB / 1.037 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4825, allocations: 3.938 kB / 1.037 GB, free: 3.676 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003122/0.4828, allocations: 24 kB / 1.037 GB, free: 3.652 MB / 0.6823 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 () * Number of clocked 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.000208/0.483, allocations: 113.2 kB / 1.037 GB, free: 3.535 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003256/0.4834, allocations: 116.2 kB / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4834, allocations: 0 / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.4835, allocations: 55.91 kB / 1.037 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.4839, allocations: 45.22 kB / 1.037 GB, free: 3.32 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007321/0.4847, allocations: 399.3 kB / 1.038 GB, free: 2.895 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.485, allocations: 0.7205 MB / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.796e-05/0.485, allocations: 13.42 kB / 1.038 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.4851, allocations: 19.44 kB / 1.038 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of SimCode: time 2.3e-07/0.4851, allocations: 0 / 1.038 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of Templates: time 0.004245/0.4893, allocations: 1.413 MB / 1.04 GB, free: 0.7305 MB / 0.6823 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.u,intDef.y,intDef.y_reset,intDef.y_reset_internal,intDef.y_start,intNoReset.k,intNoReset.reset,intNoReset.u,intNoReset.y_reset,intNoReset.y_reset_internal,intNoReset.y_start,intWitRes1.k,intWitRes1.reset,intWitRes1.u,intWitRes1.y,intWitRes1.y_reset,intWitRes1.y_reset_internal,intWitRes1.y_start,intWitRes2.k,intWitRes2.reset,intWitRes2.u,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