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.001499/0.001499, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 196.6 kB / 16.79 MB, free: 6.809 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.467/1.467, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.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.654/2.654, allocations: 437 MB / 0.7106 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 67.89 kB / 0.8692 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7223/0.7238, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002404/0.7263, allocations: 0.9543 MB / 1.018 GB, free: 1.824 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.728, allocations: 1.183 MB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.685e-05/0.7281, allocations: 0 / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.759e-05/0.7281, allocations: 7.938 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.7283, allocations: 19.84 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000538/0.7288, allocations: 131.2 kB / 1.02 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001899/0.729, allocations: 155.6 kB / 1.02 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.7292, allocations: 37.03 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.7293, allocations: 59.84 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.7294, allocations: 63.72 kB / 1.02 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/0.7295, allocations: 11.94 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.817e-05/0.7296, allocations: 20 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.544e-05/0.7296, allocations: 27.84 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.501e-05/0.7297, allocations: 63.7 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001875/0.7299, allocations: 113.7 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.7299, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.12e-07/0.7299, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.7299, allocations: 4 kB / 1.02 GB, free: 15.93 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.0007699/0.7307, allocations: 464.7 kB / 1.021 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.7308, allocations: 8.031 kB / 1.021 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.87e-05/0.7308, allocations: 12.84 kB / 1.021 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006459/0.7315, allocations: 248.2 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.7315, allocations: 8.375 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.976e-05/0.7316, allocations: 16.36 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.7319, allocations: 100 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.7319, allocations: 7.875 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.7319, allocations: 4 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.7319, allocations: 4 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.7321, allocations: 43.95 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008516/0.733, allocations: 392.5 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.7331, allocations: 34.56 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.202e-05/0.7332, allocations: 28.95 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.7332, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000309/0.7336, allocations: 103.2 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.7336, allocations: 0 / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004541/0.734, allocations: 129.5 kB / 1.022 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.7341, allocations: 63.33 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.7342, allocations: 144.1 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.7343, allocations: 26.08 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.355e-05/0.7344, allocations: 111.9 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.7344, allocations: 35.67 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.625e-05/0.7345, allocations: 45.7 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.7347, allocations: 326.8 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.7348, allocations: 47.95 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.735, allocations: 131.1 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.7354, allocations: 204.6 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.7354, allocations: 0 / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005056/0.7359, allocations: 250.9 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/0.736, allocations: 37.7 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.736, allocations: 4 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.736, allocations: 4 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.7361, allocations: 19.98 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.7362, allocations: 11.88 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.7364, allocations: 48.14 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.7364, allocations: 12 kB / 1.023 GB, free: 12.54 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.0001248/0.7366, allocations: 126.4 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.7366, allocations: 11.91 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.7366, allocations: 12.66 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.7366, allocations: 0 / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.7367, allocations: 7.938 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.7367, allocations: 4 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005947/0.7373, allocations: 402.3 kB / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.7373, allocations: 0 / 1.024 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.056e-05/0.7374, allocations: 11.98 kB / 1.024 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.7374, allocations: 7.938 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.7374, allocations: 4 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7374, allocations: 0 / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7374, allocations: 4 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004291/0.7379, allocations: 238.4 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.7379, allocations: 88.95 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.738, allocations: 192 / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.7381, allocations: 12.03 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.7381, allocations: 16.06 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.7382, allocations: 11.98 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.182e-05/0.7382, allocations: 108.6 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7382, allocations: 3.938 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002939/0.7385, allocations: 35.84 kB / 1.024 GB, free: 11.36 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.0001904/0.7387, allocations: 115.2 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003918/0.7391, allocations: 179.3 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7392, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.7393, allocations: 39.92 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.7396, allocations: 20.78 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005862/0.7402, allocations: 325.1 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.7405, allocations: 0.7048 MB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.503e-05/0.7405, allocations: 15.44 kB / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.7405, allocations: 0 / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of Templates: time 0.004037/0.7446, allocations: 1.713 MB / 1.027 GB, free: 8.195 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/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