Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 113.4 kB / 16.37 MB, free: 6.012 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.001623/0.001623, allocations: 191.6 kB / 17.31 MB, free: 5.613 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: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.562/2.562, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 62.78 kB / 0.8774 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3054, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.00278/0.3082, allocations: 0.8852 MB / 1.028 GB, free: 1.16 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00246/0.3107, allocations: 1.183 MB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.3108, allocations: 4 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.468e-05/0.3109, allocations: 7.875 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.311, allocations: 15.84 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006997/0.3117, allocations: 147.7 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002726/0.312, allocations: 175.6 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.3122, allocations: 40.98 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.3123, allocations: 67.83 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.3124, allocations: 63.73 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.3125, allocations: 16 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.044e-05/0.3126, allocations: 27.98 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.114e-05/0.3126, allocations: 27.91 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.776e-05/0.3127, allocations: 67.7 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.313, allocations: 171.3 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.313, allocations: 4 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.203e-06/0.313, allocations: 3.938 kB / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.313, allocations: 0 / 1.03 GB, free: 15.13 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009313/0.3139, allocations: 448.8 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.314, allocations: 12.03 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.3141, allocations: 12.84 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.3146, allocations: 256.1 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.3147, allocations: 8.375 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.25e-05/0.3147, allocations: 8.375 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.3149, allocations: 92.59 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.315, allocations: 7.875 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.315, allocations: 4 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.315, allocations: 0 / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.3152, allocations: 47.95 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.3159, allocations: 392.4 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.316, allocations: 42.5 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.786e-05/0.3161, allocations: 36.94 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.3162, allocations: 4 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.3164, allocations: 91.3 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3164, allocations: 0 / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004255/0.3169, allocations: 137.8 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.3169, allocations: 55.34 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.3171, allocations: 143.6 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.3171, allocations: 33.64 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.455e-05/0.3172, allocations: 116 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.3172, allocations: 31.59 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.3173, allocations: 41.7 kB / 1.032 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.3175, allocations: 322.8 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.3177, allocations: 55.95 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.3179, allocations: 123.1 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003499/0.3183, allocations: 200.6 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3183, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004763/0.3187, allocations: 246.9 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.3188, allocations: 37.7 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.3188, allocations: 4 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3188, allocations: 4 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3189, allocations: 28.36 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.319, allocations: 15.88 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.3192, allocations: 39.8 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.3192, allocations: 16 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001308/0.3194, allocations: 129.8 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.904e-05/0.3194, allocations: 7.906 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.608e-05/0.3194, allocations: 12.72 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3194, allocations: 4 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.3194, allocations: 3.938 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3195, allocations: 0 / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.32, allocations: 402.2 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.32, allocations: 0 / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.975e-05/0.3201, allocations: 15.98 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.3201, allocations: 3.938 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.3201, allocations: 0 / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3201, allocations: 11.94 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3202, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004322/0.3206, allocations: 250.1 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.3206, allocations: 84.95 kB / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.3207, allocations: 4 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.095e-05/0.3208, allocations: 16.03 kB / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3208, allocations: 7.984 kB / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.3208, allocations: 0 / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.676e-05/0.3209, allocations: 109.1 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3209, allocations: 0 / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002854/0.3212, allocations: 35.91 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001839/0.3214, allocations: 111.2 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003753/0.3218, allocations: 179.2 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3218, allocations: 0 / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.3219, allocations: 43.91 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.3222, allocations: 20.73 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006163/0.3228, allocations: 261.1 kB / 1.034 GB, free: 9.934 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.3231, allocations: 0.7045 MB / 1.035 GB, free: 9.203 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.18e-05/0.3232, allocations: 16.66 kB / 1.035 GB, free: 9.188 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.962e-05/0.3232, allocations: 19.42 kB / 1.035 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3233, allocations: 0 / 1.035 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of Templates: time 0.005075/0.3283, allocations: 1.643 MB / 1.037 GB, free: 7.543 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches