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.001402/0.001402, allocations: 104.4 kB / 15.98 MB, free: 6.355 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.001327/0.001327, allocations: 195.1 kB / 16.91 MB, free: 6.191 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.43/1.43, allocations: 222.9 MB / 240.6 MB, free: 13.67 MB / 206.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.226/2.226, allocations: 390.2 MB / 0.665 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.97 kB / 0.8127 GB, free: 32.45 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3334, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002635/0.3361, allocations: 0.9467 MB / 0.9507 GB, free: 8.277 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.3379, allocations: 1.179 MB / 0.9519 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.885e-05/0.338, allocations: 0 / 0.9519 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.107e-05/0.3381, allocations: 7.938 kB / 0.9519 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.3382, allocations: 15.86 kB / 0.9519 GB, free: 7.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000725/0.339, allocations: 147.6 kB / 0.952 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.3392, allocations: 159.7 kB / 0.9522 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.3394, allocations: 41.03 kB / 0.9522 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.3396, allocations: 67.83 kB / 0.9523 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.3397, allocations: 63.73 kB / 0.9523 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.687e-05/0.3398, allocations: 16 kB / 0.9524 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.667e-05/0.3399, allocations: 27.98 kB / 0.9524 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.3399, allocations: 23.92 kB / 0.9524 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.424e-05/0.34, allocations: 71.69 kB / 0.9525 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.3402, allocations: 112 kB / 0.9526 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3402, allocations: 4 kB / 0.9526 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3402, allocations: 0 / 0.9526 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.3402, allocations: 0 / 0.9526 GB, free: 6.34 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.0008335/0.3411, allocations: 464.7 kB / 0.953 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3411, allocations: 8.031 kB / 0.953 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.95e-05/0.3412, allocations: 12.84 kB / 0.953 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005907/0.3418, allocations: 260 kB / 0.9533 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.3418, allocations: 8.375 kB / 0.9533 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.857e-05/0.3419, allocations: 16.36 kB / 0.9533 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.3421, allocations: 86.22 kB / 0.9534 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3422, allocations: 11.86 kB / 0.9534 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.3422, allocations: 0 / 0.9534 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.3422, allocations: 4 kB / 0.9534 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.3424, allocations: 51.94 kB / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007664/0.3432, allocations: 392.5 kB / 0.9538 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.3433, allocations: 34.5 kB / 0.9539 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.167e-05/0.3434, allocations: 32.95 kB / 0.9539 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.3434, allocations: 3.938 kB / 0.9539 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003458/0.3438, allocations: 95.27 kB / 0.954 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.923e-06/0.3438, allocations: 0 / 0.954 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004304/0.3442, allocations: 137.5 kB / 0.9541 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.3443, allocations: 59.34 kB / 0.9542 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.3444, allocations: 143.5 kB / 0.9543 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.3444, allocations: 29.7 kB / 0.9543 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.22e-05/0.3445, allocations: 112 kB / 0.9545 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.3446, allocations: 27.61 kB / 0.9545 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-05/0.3447, allocations: 49.69 kB / 0.9545 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002432/0.3449, allocations: 326.8 kB / 0.9548 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3451, allocations: 51.89 kB / 0.9549 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.3453, allocations: 131.1 kB / 0.955 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.3456, allocations: 196.6 kB / 0.9552 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3456, allocations: 4 kB / 0.9552 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005055/0.3461, allocations: 243 kB / 0.9554 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.196e-05/0.3462, allocations: 37.69 kB / 0.9555 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3462, allocations: 4 kB / 0.9555 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3462, allocations: 4.375 kB / 0.9555 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.3463, allocations: 27.92 kB / 0.9555 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.3464, allocations: 7.938 kB / 0.9555 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.3466, allocations: 48.17 kB / 0.9556 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.3466, allocations: 8 kB / 0.9556 GB, free: 2.945 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.0001334/0.3468, allocations: 127.3 kB / 0.9557 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.3468, allocations: 15.89 kB / 0.9557 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.571e-05/0.3468, allocations: 16.66 kB / 0.9557 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.3468, allocations: 4 kB / 0.9557 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3468, allocations: 3.938 kB / 0.9557 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3469, allocations: 0 / 0.9557 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000641/0.3475, allocations: 394.4 kB / 0.9561 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3475, allocations: 0 / 0.9561 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.18e-05/0.3476, allocations: 19.92 kB / 0.9561 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.3476, allocations: 11.94 kB / 0.9561 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.3476, allocations: 0 / 0.9561 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3476, allocations: 0 / 0.9561 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.3477, allocations: 0 / 0.9561 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004195/0.3481, allocations: 243.2 kB / 0.9564 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.3481, allocations: 96.95 kB / 0.9565 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.3482, allocations: 0 / 0.9565 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.145e-05/0.3483, allocations: 8.031 kB / 0.9565 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.182e-05/0.3483, allocations: 11.98 kB / 0.9565 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.3483, allocations: 4 kB / 0.9565 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.133e-05/0.3484, allocations: 105.3 kB / 0.9566 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3484, allocations: 0 / 0.9566 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002922/0.3487, allocations: 28 kB / 0.9566 GB, free: 1.781 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.0002204/0.3489, allocations: 115.2 kB / 0.9567 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004028/0.3493, allocations: 187.1 kB / 0.9569 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3494, allocations: 0 / 0.9569 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.3495, allocations: 40.84 kB / 0.9569 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.3498, allocations: 32.11 kB / 0.957 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000628/0.3505, allocations: 318.6 kB / 0.9573 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.3508, allocations: 0.7123 MB / 0.958 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/0.3508, allocations: 15.44 kB / 0.958 GB, free: 300 kB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.3508, allocations: 0 / 0.958 GB, free: 300 kB / 0.7325 GB Notification: Performance of Templates: time 0.004075/0.3549, allocations: 1.72 MB / 0.9597 GB, free: 14.59 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 -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