Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.009872/0.009872, allocations: 169.9 kB / 16.27 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.548/1.548, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.608/2.608, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005978/0.0005981, allocations: 16 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.863/0.8636, allocations: 142.4 MB / 0.9551 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001206/0.8649, allocations: 0.5995 MB / 0.9556 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.8665, allocations: 1.176 MB / 0.9568 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.834e-05/0.8666, allocations: 1.156 kB / 0.9568 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.207e-05/0.8666, allocations: 7.922 kB / 0.9568 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.872e-05/0.8667, allocations: 10.14 kB / 0.9568 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.8673, allocations: 139 kB / 0.9569 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.8675, allocations: 150.2 kB / 0.9571 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.8677, allocations: 33.5 kB / 0.9571 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.8678, allocations: 64.75 kB / 0.9572 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.574e-05/0.8679, allocations: 50.36 kB / 0.9572 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.8679, allocations: 10.84 kB / 0.9572 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.868, allocations: 21.83 kB / 0.9573 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.194e-05/0.8681, allocations: 16.27 kB / 0.9573 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.414e-05/0.8682, allocations: 86.77 kB / 0.9574 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.8684, allocations: 152.5 kB / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.8684, allocations: 0 / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8684, allocations: 0 / 0.9575 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.8684, allocations: 0 / 0.9575 GB, free: 5.867 MB / 0.7169 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.0006231/0.869, allocations: 439.7 kB / 0.9579 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.8691, allocations: 9.812 kB / 0.9579 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.371e-05/0.8692, allocations: 13.78 kB / 0.9579 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005778/0.8697, allocations: 264.2 kB / 0.9582 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.8698, allocations: 8.312 kB / 0.9582 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.191e-05/0.8698, allocations: 10.62 kB / 0.9582 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.8701, allocations: 92.11 kB / 0.9583 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.8701, allocations: 3.938 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.8701, allocations: 4 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.8701, allocations: 3 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.8703, allocations: 59.8 kB / 0.9584 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007076/0.871, allocations: 387 kB / 0.9587 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.8712, allocations: 48.45 kB / 0.9588 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.414e-05/0.8713, allocations: 26.72 kB / 0.9588 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.8713, allocations: 5.359 kB / 0.9588 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.8715, allocations: 98.92 kB / 0.9589 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.8716, allocations: 1.375 kB / 0.9589 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004602/0.872, allocations: 151.7 kB / 0.9591 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.8721, allocations: 57.09 kB / 0.9591 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.8722, allocations: 151.8 kB / 0.9593 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.8722, allocations: 28.45 kB / 0.9593 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.597e-05/0.8723, allocations: 114.8 kB / 0.9594 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.8723, allocations: 35.61 kB / 0.9594 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.8724, allocations: 25.95 kB / 0.9595 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.917e-05/0.8724, allocations: 329.6 kB / 0.9598 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.8726, allocations: 46.22 kB / 0.9598 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.8728, allocations: 136.2 kB / 0.9599 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.8731, allocations: 214.5 kB / 0.9601 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.8732, allocations: 1.375 kB / 0.9601 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005109/0.8737, allocations: 248 kB / 0.9604 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.8737, allocations: 34.11 kB / 0.9604 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.8737, allocations: 2.125 kB / 0.9604 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.8738, allocations: 4.688 kB / 0.9604 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.8739, allocations: 35.5 kB / 0.9605 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.8739, allocations: 12.12 kB / 0.9605 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.8742, allocations: 44.16 kB / 0.9605 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.8742, allocations: 21.98 kB / 0.9605 GB, free: 3.176 MB / 0.7169 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.0001019/0.8743, allocations: 135.5 kB / 0.9607 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.103e-05/0.8744, allocations: 8.031 kB / 0.9607 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.8744, allocations: 15.72 kB / 0.9607 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.8744, allocations: 8.984 kB / 0.9607 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.8744, allocations: 4.938 kB / 0.9607 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.8744, allocations: 0 / 0.9607 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000609/0.8751, allocations: 406.4 kB / 0.9611 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8751, allocations: 0 / 0.9611 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.8752, allocations: 16.11 kB / 0.9611 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.8752, allocations: 7.875 kB / 0.9611 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.8752, allocations: 2.25 kB / 0.9611 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.8752, allocations: 0 / 0.9611 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8752, allocations: 5.172 kB / 0.9611 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.8757, allocations: 249.5 kB / 0.9614 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.992e-05/0.8757, allocations: 87.8 kB / 0.9614 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.8757, allocations: 13.34 kB / 0.9614 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.509e-05/0.8758, allocations: 6.875 kB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.8759, allocations: 10.73 kB / 0.9615 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.8759, allocations: 4.125 kB / 0.9615 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.78e-05/0.876, allocations: 108.1 kB / 0.9616 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.876, allocations: 3.938 kB / 0.9616 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003173/0.8763, allocations: 36.12 kB / 0.9616 GB, free: 2.215 MB / 0.7169 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.0002128/0.8765, allocations: 112.1 kB / 0.9617 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004387/0.877, allocations: 191.8 kB / 0.9619 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.877, allocations: 0.75 kB / 0.9619 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.8771, allocations: 43.38 kB / 0.9619 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.8775, allocations: 23.81 kB / 0.962 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005715/0.878, allocations: 301.3 kB / 0.9623 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.8782, allocations: 0.7041 MB / 0.9629 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.487e-05/0.8783, allocations: 16.36 kB / 0.963 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.8784, allocations: 14.47 kB / 0.963 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8784, allocations: 0 / 0.963 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of Templates: time 0.004766/0.8831, allocations: 1.535 MB / 0.9645 GB, free: 228 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches