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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001379/0.001379, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00137/0.00137, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.686/2.686, allocations: 437 MB / 0.7099 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 64.05 kB / 0.8686 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7298/0.7316, allocations: 151.6 MB / 1.017 GB, free: 2.887 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002129/0.7338, allocations: 0.9502 MB / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.7353, allocations: 1.194 MB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.848e-05/0.7354, allocations: 0 / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.918e-05/0.7354, allocations: 3.938 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.56e-05/0.7355, allocations: 15.91 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.736, allocations: 135.2 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.7361, allocations: 155.6 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.7363, allocations: 41.03 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.98e-05/0.7364, allocations: 59.78 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.738e-05/0.7365, allocations: 59.73 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.62e-05/0.7365, allocations: 12 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.041e-05/0.7366, allocations: 15.98 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.045e-05/0.7366, allocations: 27.91 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.501e-05/0.7367, allocations: 59.7 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.7369, allocations: 169.5 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.7369, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.02e-07/0.737, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.476e-06/0.737, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 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.0006472/0.7376, allocations: 452.7 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.7377, allocations: 15.97 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.7377, allocations: 20.83 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005137/0.7382, allocations: 248.2 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.7383, allocations: 12.38 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.7383, allocations: 8.375 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.7385, allocations: 91.97 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.7386, allocations: 11.88 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.7386, allocations: 4 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.7386, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.7388, allocations: 47.95 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006916/0.7395, allocations: 384.5 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.7396, allocations: 46.53 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.1e-05/0.7397, allocations: 24.97 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.7397, allocations: 7.938 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.74, allocations: 99.23 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.74, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004299/0.7404, allocations: 137.5 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.7405, allocations: 55.34 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.7406, allocations: 139.7 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.7407, allocations: 33.69 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.7408, allocations: 108 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.7408, allocations: 31.69 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.15e-05/0.7409, allocations: 49.69 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.741, allocations: 322.8 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.7412, allocations: 47.97 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.7414, allocations: 132.8 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.7417, allocations: 208.6 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.7417, allocations: 4 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004753/0.7422, allocations: 235 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.7423, allocations: 33.7 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.7423, allocations: 4.375 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.7423, allocations: 8 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.7424, allocations: 35.91 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.7425, allocations: 7.938 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.7427, allocations: 36.19 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/0.7427, allocations: 19.98 kB / 1.022 GB, free: 12.6 MB / 0.7794 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.0001047/0.7428, allocations: 130.2 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.881e-05/0.7429, allocations: 11.91 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.566e-05/0.7429, allocations: 20.64 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.7429, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7429, allocations: 3.938 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.7429, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005595/0.7435, allocations: 394.4 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7435, allocations: 0 / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.587e-05/0.7436, allocations: 23.92 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.7436, allocations: 3.938 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.7437, allocations: 3.984 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.7437, allocations: 4 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.7437, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004117/0.7441, allocations: 239.3 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.7441, allocations: 85 kB / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.7442, allocations: 7.984 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.222e-05/0.7443, allocations: 8 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.7443, allocations: 7.984 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.7443, allocations: 4 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.464e-05/0.7444, allocations: 108.8 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7444, allocations: 0 / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003183/0.7447, allocations: 39.84 kB / 1.023 GB, free: 11.43 MB / 0.7794 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.0001632/0.7449, allocations: 111.2 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003855/0.7453, allocations: 183.1 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7453, allocations: 0 / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.7454, allocations: 36.91 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.7457, allocations: 35.97 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005259/0.7463, allocations: 294.6 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.7466, allocations: 0.7009 MB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.924e-05/0.7466, allocations: 16.64 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/0.7467, allocations: 19.44 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.7467, allocations: 0 / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of Templates: time 0.004179/0.7509, allocations: 1.521 MB / 1.026 GB, free: 8.473 MB / 0.7794 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 -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/jenkins/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