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.001224/0.001225, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001747/0.001747, allocations: 193.9 kB / 16.14 MB, free: 6.711 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.493/1.493, allocations: 222.9 MB / 239.8 MB, free: 4.465 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.479/2.479, allocations: 390.2 MB / 0.6642 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001266, allocations: 63.91 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.89/0.8913, allocations: 140.4 MB / 0.9489 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002792/0.8942, allocations: 0.9371 MB / 0.9499 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001786/0.896, allocations: 1.194 MB / 0.951 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.8961, allocations: 1.344 kB / 0.951 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.062e-05/0.8962, allocations: 3.938 kB / 0.951 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.8963, allocations: 14.64 kB / 0.951 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006536/0.897, allocations: 145.9 kB / 0.9512 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.8972, allocations: 149.7 kB / 0.9513 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.8974, allocations: 34.14 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.8976, allocations: 62.06 kB / 0.9514 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.8977, allocations: 54.88 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.14e-05/0.8977, allocations: 9.625 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.446e-05/0.8978, allocations: 23.11 kB / 0.9515 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.663e-05/0.8979, allocations: 24.03 kB / 0.9515 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.7e-05/0.898, allocations: 62.95 kB / 0.9516 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.8983, allocations: 162.4 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.8983, allocations: 1.375 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.8983, allocations: 0 / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.8983, allocations: 0 / 0.9517 GB, free: 6.977 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.0007522/0.899, allocations: 461.2 kB / 0.9522 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.8991, allocations: 9.531 kB / 0.9522 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.836e-05/0.8992, allocations: 13.41 kB / 0.9522 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005631/0.8998, allocations: 251 kB / 0.9524 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.8998, allocations: 5.219 kB / 0.9524 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.8998, allocations: 13.56 kB / 0.9525 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.9001, allocations: 95.7 kB / 0.9525 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.9001, allocations: 3.938 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.9001, allocations: 1.281 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.9001, allocations: 2.875 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.9003, allocations: 53.52 kB / 0.9526 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007267/0.9011, allocations: 389.9 kB / 0.953 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.9012, allocations: 43.62 kB / 0.953 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.674e-05/0.9013, allocations: 28.84 kB / 0.953 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.9013, allocations: 9.125 kB / 0.9531 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.9015, allocations: 91.45 kB / 0.9531 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.9016, allocations: 0 / 0.9531 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004763/0.902, allocations: 140.8 kB / 0.9533 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.9021, allocations: 56.97 kB / 0.9533 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.9022, allocations: 158.1 kB / 0.9535 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.9023, allocations: 27.52 kB / 0.9535 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.977e-05/0.9023, allocations: 111.5 kB / 0.9536 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.9024, allocations: 27.48 kB / 0.9536 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.839e-05/0.9024, allocations: 44.52 kB / 0.9537 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.175e-05/0.9025, allocations: 326 kB / 0.954 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.9027, allocations: 50.61 kB / 0.954 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.9029, allocations: 128.5 kB / 0.9542 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.9032, allocations: 203 kB / 0.9544 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.9032, allocations: 1.062 kB / 0.9544 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005167/0.9037, allocations: 245.2 kB / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.463e-05/0.9038, allocations: 41.28 kB / 0.9546 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.9038, allocations: 3 kB / 0.9546 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.9038, allocations: 8.906 kB / 0.9546 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.904, allocations: 22.27 kB / 0.9547 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.904, allocations: 11.22 kB / 0.9547 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.9042, allocations: 38.39 kB / 0.9547 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.9043, allocations: 12.53 kB / 0.9547 GB, free: 4.266 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.000117/0.9044, allocations: 131.8 kB / 0.9548 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.434e-05/0.9044, allocations: 12.41 kB / 0.9549 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.9045, allocations: 14.47 kB / 0.9549 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.9045, allocations: 1.344 kB / 0.9549 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.9045, allocations: 5.438 kB / 0.9549 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.9045, allocations: 384 / 0.9549 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005203/0.905, allocations: 398.5 kB / 0.9553 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.905, allocations: 1.344 kB / 0.9553 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-05/0.9051, allocations: 21.61 kB / 0.9553 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.9051, allocations: 3.938 kB / 0.9553 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.9052, allocations: 1.281 kB / 0.9553 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.9052, allocations: 5.125 kB / 0.9553 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9052, allocations: 0 / 0.9553 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/0.9056, allocations: 247.7 kB / 0.9555 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.355e-05/0.9056, allocations: 87.48 kB / 0.9556 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.9056, allocations: 1.125 kB / 0.9556 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-05/0.9057, allocations: 12.03 kB / 0.9556 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.9058, allocations: 6.984 kB / 0.9556 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.9058, allocations: 4.188 kB / 0.9556 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.765e-05/0.9059, allocations: 106.2 kB / 0.9557 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9059, allocations: 3.938 kB / 0.9557 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003196/0.9062, allocations: 32.38 kB / 0.9558 GB, free: 3.312 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.0002166/0.9064, allocations: 107.7 kB / 0.9559 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004594/0.9069, allocations: 179.6 kB / 0.956 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.9069, allocations: 0 / 0.956 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.9071, allocations: 40.62 kB / 0.9561 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.9074, allocations: 26.42 kB / 0.9561 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006032/0.908, allocations: 295.5 kB / 0.9564 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000186/0.9082, allocations: 0.7114 MB / 0.9571 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.241e-05/0.9083, allocations: 12.06 kB / 0.9571 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.9084, allocations: 22.42 kB / 0.9571 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9084, allocations: 0 / 0.9571 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of Templates: time 0.006353/0.9147, allocations: 1.533 MB / 0.9586 GB, free: 1.328 MB / 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