Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001494/0.001494, allocations: 109.4 kB / 16.37 MB, free: 6.477 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.001694/0.001694, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.467/2.467, allocations: 437.1 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.45 kB / 0.8707 GB, free: 1.477 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3174, allocations: 151.6 MB / 1.019 GB, free: 9.875 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.003229/0.3207, allocations: 0.8798 MB / 1.02 GB, free: 8.988 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002349/0.3231, allocations: 1.176 MB / 1.021 GB, free: 7.797 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.757e-05/0.3232, allocations: 0 / 1.021 GB, free: 7.797 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.804e-05/0.3232, allocations: 11.86 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.3234, allocations: 19.8 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007909/0.3242, allocations: 156.7 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003055/0.3245, allocations: 171.6 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.3247, allocations: 37.05 kB / 1.021 GB, free: 7.41 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.3248, allocations: 71.81 kB / 1.021 GB, free: 7.34 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.325, allocations: 71.67 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.325, allocations: 12 kB / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.3252, allocations: 31.98 kB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.441e-05/0.3252, allocations: 27.91 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.3253, allocations: 59.72 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.3256, allocations: 171.5 kB / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3256, allocations: 0 / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3257, allocations: 0 / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.3257, allocations: 4 kB / 1.022 GB, free: 6.969 MB / 0.795 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.0008136/0.3265, allocations: 456.7 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3265, allocations: 8.922 kB / 1.022 GB, free: 6.457 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.189e-05/0.3266, allocations: 12.84 kB / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006863/0.3273, allocations: 256.1 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.3273, allocations: 4.375 kB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.87e-05/0.3274, allocations: 20.36 kB / 1.022 GB, free: 6.133 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003777/0.3278, allocations: 89.31 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3278, allocations: 3.938 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.3278, allocations: 11.97 kB / 1.022 GB, free: 6.027 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3279, allocations: 4 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.3281, allocations: 43.89 kB / 1.023 GB, free: 5.98 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.3291, allocations: 388.5 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.3293, allocations: 46.48 kB / 1.023 GB, free: 5.496 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.3295, allocations: 24.97 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.3295, allocations: 0 / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003247/0.3298, allocations: 103.2 kB / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 1.973e-06/0.3298, allocations: 0 / 1.023 GB, free: 5.355 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0005743/0.3304, allocations: 137.7 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.3305, allocations: 55.34 kB / 1.023 GB, free: 5.148 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.3307, allocations: 147.5 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.3307, allocations: 29.7 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3308, allocations: 120 kB / 1.024 GB, free: 4.84 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.3309, allocations: 27.61 kB / 1.024 GB, free: 4.812 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.331, allocations: 49.69 kB / 1.024 GB, free: 4.758 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3312, allocations: 318.8 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.3314, allocations: 47.97 kB / 1.024 GB, free: 4.391 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.3317, allocations: 131.1 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/0.3323, allocations: 204.6 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3323, allocations: 0 / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007741/0.3331, allocations: 243.2 kB / 1.024 GB, free: 3.727 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.588e-05/0.3331, allocations: 33.7 kB / 1.025 GB, free: 3.688 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3331, allocations: 4 kB / 1.025 GB, free: 3.684 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.3332, allocations: 7.984 kB / 1.025 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.3333, allocations: 27.92 kB / 1.025 GB, free: 3.648 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.3334, allocations: 11.92 kB / 1.025 GB, free: 3.637 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003512/0.3337, allocations: 35.91 kB / 1.025 GB, free: 3.602 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.3338, allocations: 23.98 kB / 1.025 GB, free: 3.578 MB / 0.795 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.000173/0.334, allocations: 121.8 kB / 1.025 GB, free: 3.449 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.334, allocations: 7.906 kB / 1.025 GB, free: 3.441 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.899e-05/0.3341, allocations: 20.7 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.3341, allocations: 0 / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3341, allocations: 7.938 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3341, allocations: 0 / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007957/0.3349, allocations: 402.3 kB / 1.025 GB, free: 2.965 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3349, allocations: 0 / 1.025 GB, free: 2.965 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.3351, allocations: 11.94 kB / 1.025 GB, free: 2.953 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/0.3351, allocations: 7.922 kB / 1.025 GB, free: 2.945 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.3351, allocations: 4 kB / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3351, allocations: 0 / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3352, allocations: 0 / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.3358, allocations: 243.5 kB / 1.025 GB, free: 2.688 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.041e-05/0.3358, allocations: 96.92 kB / 1.026 GB, free: 2.574 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.3359, allocations: 0 / 1.026 GB, free: 2.574 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.3361, allocations: 7.984 kB / 1.026 GB, free: 2.566 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.649e-05/0.3361, allocations: 8 kB / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.3361, allocations: 7.984 kB / 1.026 GB, free: 2.551 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.057e-05/0.3362, allocations: 109 kB / 1.026 GB, free: 2.445 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3362, allocations: 0 / 1.026 GB, free: 2.445 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004939/0.3367, allocations: 35.91 kB / 1.026 GB, free: 2.41 MB / 0.795 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.0002932/0.337, allocations: 119.2 kB / 1.026 GB, free: 2.285 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005691/0.3376, allocations: 179.8 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3377, allocations: 4.125 kB / 1.026 GB, free: 2.094 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.3378, allocations: 35.97 kB / 1.026 GB, free: 2.059 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.3383, allocations: 27.78 kB / 1.026 GB, free: 2.031 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007049/0.339, allocations: 257.1 kB / 1.026 GB, free: 1.758 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.3394, allocations: 0.7084 MB / 1.027 GB, free: 1.023 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.185e-05/0.3395, allocations: 16.88 kB / 1.027 GB, free: 1.008 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.034e-05/0.3395, allocations: 15.44 kB / 1.027 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of SimCode: time 3.91e-07/0.3395, allocations: 0 / 1.027 GB, free: 0.9922 MB / 0.795 GB Notification: Performance of Templates: time 0.00615/0.3457, allocations: 1.638 MB / 1.029 GB, free: 15.37 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches