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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.059/1.059, allocations: 177.1 MB / 203.8 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.259/2.259, allocations: 429.5 MB / 0.6736 GB, free: 4.047 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.414e-06/2.414e-06, allocations: 0 / 0.8783 GB, free: 6.551 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.545e-05/2.786e-05, allocations: 2.312 kB / 0.8783 GB, free: 6.547 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.004842/0.00487, allocations: 0.8799 MB / 0.8791 GB, free: 5.695 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.006235, allocations: 1.217 MB / 0.8803 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.857e-05/0.006294, allocations: 0.9375 kB / 0.8803 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.363e-05/0.006327, allocations: 15.8 kB / 0.8803 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.5e-05/0.006412, allocations: 16.94 kB / 0.8803 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004424/0.006855, allocations: 152.6 kB / 0.8805 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.007047, allocations: 163.6 kB / 0.8806 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.007157, allocations: 29.3 kB / 0.8807 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003155/0.01031, allocations: 93.44 kB / 0.8808 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.01042, allocations: 51.86 kB / 0.8808 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.01045, allocations: 16 kB / 0.8808 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.674e-05/0.01051, allocations: 27.92 kB / 0.8809 GB, free: 3.914 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.269e-05/0.01054, allocations: 30.22 kB / 0.8809 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.767e-05/0.01061, allocations: 51.89 kB / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.01082, allocations: 135.6 kB / 0.8811 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.01082, allocations: 0 / 0.8811 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/0.01082, allocations: 0 / 0.8811 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.01083, allocations: 0 / 0.8811 GB, free: 3.703 MB / 0.8386 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.0006419/0.01147, allocations: 0.5108 MB / 0.8816 GB, free: 3.137 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.01151, allocations: 8.031 kB / 0.8816 GB, free: 3.129 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.296e-05/0.01159, allocations: 24.84 kB / 0.8816 GB, free: 3.105 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.01197, allocations: 185.2 kB / 0.8818 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.01199, allocations: 9.094 kB / 0.8818 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.01203, allocations: 18.03 kB / 0.8818 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.0122, allocations: 86.91 kB / 0.8819 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.0122, allocations: 192 / 0.8819 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.01222, allocations: 384 / 0.8819 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.01223, allocations: 8.125 kB / 0.8819 GB, free: 2.773 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.673e-05/0.01227, allocations: 25.23 kB / 0.8819 GB, free: 2.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005707/0.01285, allocations: 363.5 kB / 0.8823 GB, free: 2.359 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.313e-05/0.0129, allocations: 38.94 kB / 0.8823 GB, free: 2.309 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.776e-05/0.01293, allocations: 15.69 kB / 0.8823 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.01294, allocations: 3.984 kB / 0.8823 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.01307, allocations: 81.16 kB / 0.8824 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.01307, allocations: 0 / 0.8824 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002269/0.0133, allocations: 101.5 kB / 0.8825 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.01333, allocations: 55.41 kB / 0.8825 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.01345, allocations: 203.7 kB / 0.8827 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.01347, allocations: 29.7 kB / 0.8828 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.298e-05/0.01355, allocations: 162.8 kB / 0.8829 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.01358, allocations: 31.78 kB / 0.8829 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.229e-05/0.01365, allocations: 51.36 kB / 0.883 GB, free: 1.516 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002383/0.01389, allocations: 0.4961 MB / 0.8835 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.125e-05/0.01398, allocations: 61.67 kB / 0.8835 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.01411, allocations: 188 kB / 0.8837 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.01429, allocations: 213.4 kB / 0.8839 GB, free: 440 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.0143, allocations: 4 kB / 0.8839 GB, free: 436 kB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000314/0.01461, allocations: 256.6 kB / 0.8842 GB, free: 160 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.01464, allocations: 37.69 kB / 0.8842 GB, free: 116 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.01465, allocations: 7.984 kB / 0.8842 GB, free: 108 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.01466, allocations: 4 kB / 0.8842 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.128e-05/0.01474, allocations: 19.98 kB / 0.8842 GB, free: 84 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.01475, allocations: 7.938 kB / 0.8842 GB, free: 76 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.01488, allocations: 28.36 kB / 0.8843 GB, free: 48 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.0149, allocations: 15.98 kB / 0.8843 GB, free: 32 kB / 0.8386 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.0001041/0.015, allocations: 172.5 kB / 0.8845 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.26e-05/0.01502, allocations: 23.84 kB / 0.8845 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.243e-05/0.01506, allocations: 12.77 kB / 0.8845 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.01506, allocations: 0 / 0.8845 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.01506, allocations: 4 kB / 0.8845 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.01507, allocations: 0 / 0.8845 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/0.0154, allocations: 357.3 kB / 0.8848 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.01541, allocations: 7.984 kB / 0.8848 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/0.01546, allocations: 8 kB / 0.8848 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.01546, allocations: 0 / 0.8848 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.01547, allocations: 4 kB / 0.8849 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.01547, allocations: 3.938 kB / 0.8849 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.01548, allocations: 4 kB / 0.8849 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001953/0.01567, allocations: 264.1 kB / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.258e-06/0.01568, allocations: 3.953 kB / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.0157, allocations: 4 kB / 0.8851 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.053e-05/0.01576, allocations: 7.984 kB / 0.8851 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.0158, allocations: 16.06 kB / 0.8851 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.01581, allocations: 7.938 kB / 0.8851 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.835e-05/0.01586, allocations: 149.2 kB / 0.8853 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01586, allocations: 4 kB / 0.8853 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.003275/0.01914, allocations: 35.83 kB / 0.8853 GB, free: 14.89 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.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.0001338/0.01927, allocations: 111.2 kB / 0.8854 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.0195, allocations: 177.2 kB / 0.8856 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.0195, allocations: 4.125 kB / 0.8856 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.719e-05/0.01955, allocations: 31.61 kB / 0.8856 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.01982, allocations: 23.98 kB / 0.8857 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004501/0.02027, allocations: 246.5 kB / 0.8859 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.589e-05/0.02032, allocations: 71.78 kB / 0.886 GB, free: 14.15 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.082e-05/0.02037, allocations: 16.64 kB / 0.886 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.901e-05/0.0204, allocations: 16.5 kB / 0.886 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of SimCode: time 7.12e-07/0.0204, allocations: 0 / 0.886 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of Templates: time 0.007225/0.02762, allocations: 1.766 MB / 0.8877 GB, free: 12.41 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.87555608805269]