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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001701/0.001702, allocations: 110.6 kB / 16.37 MB, free: 6.004 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.001893/0.001893, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.469/1.469, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001299, allocations: 64.53 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.328, allocations: 140.4 MB / 0.9512 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002443/0.3305, allocations: 0.8832 MB / 0.952 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.3322, allocations: 1.179 MB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.86e-05/0.3322, allocations: 0 / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.61e-05/0.3323, allocations: 11.81 kB / 0.9532 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.522e-05/0.3324, allocations: 19.84 kB / 0.9532 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.333, allocations: 147.4 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.3333, allocations: 175.6 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.3334, allocations: 37.09 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.3335, allocations: 67.75 kB / 0.9536 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.3337, allocations: 63.75 kB / 0.9537 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.3337, allocations: 20 kB / 0.9537 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.815e-05/0.3338, allocations: 27.98 kB / 0.9537 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.986e-05/0.3338, allocations: 31.89 kB / 0.9537 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.071e-05/0.3339, allocations: 63.72 kB / 0.9538 GB, free: 5.305 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002307/0.3342, allocations: 171.4 kB / 0.954 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3342, allocations: 0 / 0.954 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3342, allocations: 0 / 0.954 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.3342, allocations: 0 / 0.954 GB, free: 5.137 MB / 0.7325 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.0007455/0.3349, allocations: 456.7 kB / 0.9544 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.335, allocations: 15.97 kB / 0.9544 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.335, allocations: 16.84 kB / 0.9544 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.3356, allocations: 258 kB / 0.9547 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.3356, allocations: 4.375 kB / 0.9547 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.716e-05/0.3356, allocations: 12.38 kB / 0.9547 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.3358, allocations: 94.2 kB / 0.9548 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.3359, allocations: 3.938 kB / 0.9548 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.3359, allocations: 0 / 0.9548 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3359, allocations: 0 / 0.9548 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.3361, allocations: 51.89 kB / 0.9548 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.3368, allocations: 384.5 kB / 0.9552 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.3369, allocations: 54.48 kB / 0.9553 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.126e-05/0.337, allocations: 20.84 kB / 0.9553 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.337, allocations: 0 / 0.9553 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.3373, allocations: 99.39 kB / 0.9554 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 3.757e-06/0.3373, allocations: 3.938 kB / 0.9554 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003982/0.3377, allocations: 137.5 kB / 0.9555 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.3378, allocations: 59.28 kB / 0.9556 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.3379, allocations: 139.8 kB / 0.9557 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.3379, allocations: 33.7 kB / 0.9557 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.745e-05/0.338, allocations: 116 kB / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.3381, allocations: 35.59 kB / 0.9559 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.67e-05/0.3381, allocations: 41.7 kB / 0.9559 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3383, allocations: 322.8 kB / 0.9562 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.3384, allocations: 47.95 kB / 0.9563 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.3386, allocations: 131.1 kB / 0.9564 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.3389, allocations: 208.6 kB / 0.9566 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3389, allocations: 0 / 0.9566 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004658/0.3394, allocations: 239.3 kB / 0.9568 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.3394, allocations: 37.77 kB / 0.9569 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.3395, allocations: 4 kB / 0.9569 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3395, allocations: 4 kB / 0.9569 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3396, allocations: 27.92 kB / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.3396, allocations: 15.86 kB / 0.9569 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.3398, allocations: 35.81 kB / 0.9569 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.3399, allocations: 19.98 kB / 0.957 GB, free: 1.742 MB / 0.7325 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.0001277/0.34, allocations: 124.2 kB / 0.9571 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.34, allocations: 11.91 kB / 0.9571 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.929e-05/0.3401, allocations: 12.72 kB / 0.9571 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3401, allocations: 0 / 0.9571 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3401, allocations: 3.938 kB / 0.9571 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3401, allocations: 7.984 kB / 0.9571 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/0.3407, allocations: 402.7 kB / 0.9575 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3407, allocations: 0 / 0.9575 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.465e-05/0.3408, allocations: 11.98 kB / 0.9575 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3408, allocations: 3.938 kB / 0.9575 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.3408, allocations: 4.094 kB / 0.9575 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3408, allocations: 3.938 kB / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3408, allocations: 0 / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004154/0.3412, allocations: 255.2 kB / 0.9578 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.3413, allocations: 88.95 kB / 0.9578 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.3413, allocations: 0 / 0.9578 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.032e-05/0.3414, allocations: 12.03 kB / 0.9579 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.3414, allocations: 7.984 kB / 0.9579 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.3415, allocations: 4 kB / 0.9579 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.033e-05/0.3415, allocations: 107.2 kB / 0.958 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of sort global known variables: time 5.42e-07/0.3415, allocations: 0 / 0.958 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002923/0.3418, allocations: 35.91 kB / 0.958 GB, free: 0.5664 MB / 0.7325 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.0002013/0.342, allocations: 115.2 kB / 0.9581 GB, free: 452 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000385/0.3424, allocations: 175.2 kB / 0.9583 GB, free: 264 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3425, allocations: 4.688 kB / 0.9583 GB, free: 260 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.3426, allocations: 39.92 kB / 0.9583 GB, free: 220 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.3429, allocations: 28.33 kB / 0.9584 GB, free: 196 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006513/0.3435, allocations: 261 kB / 0.9586 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.344, allocations: 0.7126 MB / 0.9593 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.626e-05/0.344, allocations: 12.64 kB / 0.9593 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.3441, allocations: 19.44 kB / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.3441, allocations: 3.938 kB / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of Templates: time 0.004504/0.3486, allocations: 1.628 MB / 0.9609 GB, free: 13.52 MB / 0.7481 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 -s cvode -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/jenkins1/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