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.001503/0.001503, allocations: 104.3 kB / 16.35 MB, free: 6.289 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.001586/0.001586, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.45/1.45, allocations: 222.9 MB / 241 MB, free: 15.16 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.308/2.308, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 68.77 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3219, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002414/0.3243, allocations: 0.8918 MB / 0.952 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.326, allocations: 1.183 MB / 0.9532 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.178e-05/0.3261, allocations: 0 / 0.9532 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.205e-05/0.3262, allocations: 7.875 kB / 0.9532 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.006e-05/0.3263, allocations: 19.8 kB / 0.9532 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.3269, allocations: 147.5 kB / 0.9533 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.3271, allocations: 175.6 kB / 0.9535 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.3273, allocations: 37.09 kB / 0.9535 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.3274, allocations: 63.83 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.3276, allocations: 63.73 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.345e-05/0.3276, allocations: 16 kB / 0.9537 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.133e-05/0.3277, allocations: 35.98 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.491e-05/0.3278, allocations: 27.91 kB / 0.9537 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.3278, allocations: 63.7 kB / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.3281, allocations: 167.4 kB / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3281, allocations: 0 / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3281, allocations: 0 / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.3281, allocations: 0 / 0.9539 GB, free: 5.117 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.0007135/0.3288, allocations: 465.7 kB / 0.9544 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3289, allocations: 12.03 kB / 0.9544 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.193e-05/0.329, allocations: 16.78 kB / 0.9544 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/0.3295, allocations: 252.2 kB / 0.9547 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.3295, allocations: 8.359 kB / 0.9547 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.3296, allocations: 12.38 kB / 0.9547 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.3298, allocations: 94.14 kB / 0.9548 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3298, allocations: 7.938 kB / 0.9548 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.3299, allocations: 7.984 kB / 0.9548 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.3299, allocations: 0 / 0.9548 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.3301, allocations: 43.95 kB / 0.9548 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007707/0.3308, allocations: 388.5 kB / 0.9552 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.331, allocations: 46.56 kB / 0.9552 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.693e-05/0.3311, allocations: 28.95 kB / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.3311, allocations: 0 / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.3314, allocations: 95.2 kB / 0.9554 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.3314, allocations: 4 kB / 0.9554 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004359/0.3318, allocations: 133.5 kB / 0.9555 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.3319, allocations: 55.34 kB / 0.9555 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.332, allocations: 151.7 kB / 0.9557 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.3321, allocations: 25.7 kB / 0.9557 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.041e-05/0.3322, allocations: 116 kB / 0.9558 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.3322, allocations: 27.61 kB / 0.9558 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.3323, allocations: 53.69 kB / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3324, allocations: 318.8 kB / 0.9562 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.3326, allocations: 51.95 kB / 0.9563 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.3328, allocations: 135.1 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.3331, allocations: 192.7 kB / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3331, allocations: 384 / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004839/0.3336, allocations: 242.9 kB / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.3337, allocations: 42.06 kB / 0.9568 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3337, allocations: 8 kB / 0.9568 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.3337, allocations: 7.938 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.3338, allocations: 19.98 kB / 0.9569 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.28e-05/0.3339, allocations: 15.88 kB / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.3341, allocations: 43.8 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.3342, allocations: 12 kB / 0.9569 GB, free: 1.719 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.0001174/0.3343, allocations: 131.8 kB / 0.9571 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.3343, allocations: 19.83 kB / 0.9571 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.3344, allocations: 8.719 kB / 0.9571 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3344, allocations: 0 / 0.9571 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.3344, allocations: 7.938 kB / 0.9571 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3344, allocations: 0 / 0.9571 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005627/0.335, allocations: 394.4 kB / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.335, allocations: 0 / 0.9575 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.341e-05/0.3351, allocations: 15.98 kB / 0.9575 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.3351, allocations: 3.938 kB / 0.9575 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.3351, allocations: 4 kB / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3351, allocations: 0 / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3351, allocations: 0 / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.3355, allocations: 247.2 kB / 0.9577 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.3356, allocations: 88.95 kB / 0.9578 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.3356, allocations: 0 / 0.9578 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/0.3357, allocations: 12.03 kB / 0.9578 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.3358, allocations: 7.984 kB / 0.9578 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.3358, allocations: 4 kB / 0.9578 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.934e-05/0.3359, allocations: 109.3 kB / 0.9579 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3359, allocations: 0 / 0.9579 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003019/0.3362, allocations: 35.89 kB / 0.958 GB, free: 0.5508 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.000177/0.3364, allocations: 115.2 kB / 0.9581 GB, free: 436 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003869/0.3368, allocations: 179.3 kB / 0.9583 GB, free: 244 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3368, allocations: 0 / 0.9583 GB, free: 244 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.3369, allocations: 44.66 kB / 0.9583 GB, free: 200 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.3372, allocations: 19.98 kB / 0.9583 GB, free: 180 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005519/0.3378, allocations: 261 kB / 0.9586 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.3381, allocations: 0.7045 MB / 0.9593 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.108e-05/0.3382, allocations: 16.88 kB / 0.9593 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.082e-05/0.3382, allocations: 15.44 kB / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of SimCode: time 1.784e-06/0.3382, allocations: 0 / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of Templates: time 0.004696/0.3429, allocations: 1.653 MB / 0.9609 GB, free: 13.5 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 gbode -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