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.001077/0.001077, allocations: 91.77 kB / 16.02 MB, free: 80 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.001316/0.001316, allocations: 180.9 kB / 16.92 MB, free: 6.652 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.438/1.438, allocations: 223.3 MB / 241 MB, free: 5.285 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.718/2.718, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004288, allocations: 12 kB / 0.8735 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7292/0.7297, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001261/0.731, allocations: 0.596 MB / 1.024 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001786/0.7328, allocations: 1.187 MB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.029e-05/0.7329, allocations: 4 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.048e-05/0.7329, allocations: 7.875 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.7331, allocations: 11.92 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006018/0.7337, allocations: 139.5 kB / 1.026 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.7339, allocations: 147.7 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.7341, allocations: 41.02 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.7342, allocations: 59.77 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.7343, allocations: 51.75 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.772e-05/0.7343, allocations: 4 kB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.794e-05/0.7344, allocations: 27.98 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.407e-05/0.7345, allocations: 19.91 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.877e-05/0.7346, allocations: 77.42 kB / 1.026 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.7348, allocations: 109.7 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.7348, allocations: 4 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.445e-06/0.7348, allocations: 0 / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.7348, allocations: 0 / 1.026 GB, free: 13.38 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.0006698/0.7355, allocations: 436.8 kB / 1.027 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.7355, allocations: 16.02 kB / 1.027 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.06e-05/0.7356, allocations: 16.75 kB / 1.027 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000595/0.7362, allocations: 258.4 kB / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.7362, allocations: 12.38 kB / 1.027 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.781e-05/0.7363, allocations: 16.38 kB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.7366, allocations: 90.14 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.7366, allocations: 3.938 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.7366, allocations: 11.92 kB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.7366, allocations: 4 kB / 1.027 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.7368, allocations: 55.95 kB / 1.027 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007644/0.7376, allocations: 388.4 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.7377, allocations: 42.55 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.7379, allocations: 32.97 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.7379, allocations: 3.938 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/0.7382, allocations: 107.3 kB / 1.028 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.783e-06/0.7382, allocations: 0 / 1.028 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004712/0.7386, allocations: 149.4 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.7387, allocations: 59.34 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.7388, allocations: 139.1 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.7389, allocations: 37.69 kB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.495e-05/0.7389, allocations: 104 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.739, allocations: 27.7 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.739, allocations: 29.7 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.581e-05/0.7391, allocations: 318.8 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.7393, allocations: 55.97 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.7395, allocations: 139 kB / 1.029 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003954/0.74, allocations: 208.6 kB / 1.029 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.74, allocations: 0 / 1.029 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005621/0.7405, allocations: 247.1 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.713e-05/0.7406, allocations: 37.7 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.7406, allocations: 4 kB / 1.029 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.7406, allocations: 7.984 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.7408, allocations: 27.92 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.7408, allocations: 7.938 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.7411, allocations: 48.06 kB / 1.029 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.7411, allocations: 19.98 kB / 1.029 GB, free: 9.953 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.0001485/0.7413, allocations: 137.1 kB / 1.029 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.7413, allocations: 11.91 kB / 1.029 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.316e-05/0.7413, allocations: 16.7 kB / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.7413, allocations: 0 / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.7414, allocations: 3.938 kB / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.7414, allocations: 0 / 1.029 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006643/0.742, allocations: 410.3 kB / 1.03 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.7421, allocations: 3.984 kB / 1.03 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.944e-05/0.7422, allocations: 19.92 kB / 1.03 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.7422, allocations: 4.406 kB / 1.03 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.7422, allocations: 7.984 kB / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.7422, allocations: 0 / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.7422, allocations: 0 / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.7427, allocations: 255.3 kB / 1.03 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.7427, allocations: 88.98 kB / 1.03 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.7428, allocations: 4 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.7429, allocations: 19.98 kB / 1.03 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/0.7429, allocations: 4 kB / 1.03 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.7429, allocations: 7.984 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.195e-05/0.743, allocations: 105 kB / 1.03 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.743, allocations: 0 / 1.03 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003135/0.7434, allocations: 35.84 kB / 1.03 GB, free: 8.746 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.000213/0.7436, allocations: 118.7 kB / 1.03 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004336/0.744, allocations: 191.1 kB / 1.031 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.744, allocations: 0 / 1.031 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.7442, allocations: 44.72 kB / 1.031 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.7445, allocations: 25.22 kB / 1.031 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006689/0.7452, allocations: 331.4 kB / 1.031 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.7455, allocations: 0.7087 MB / 1.032 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.7456, allocations: 15.44 kB / 1.032 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of SimCode: time 1.613e-06/0.7456, allocations: 0 / 1.032 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of Templates: time 0.004193/0.7498, allocations: 1.701 MB / 1.033 GB, free: 5.562 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