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.001172/0.001171, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001307/0.001307, allocations: 198.7 kB / 16.26 MB, free: 6.625 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.483/1.483, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.502/2.502, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 75.88 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7869/0.7884, allocations: 140.4 MB / 0.9491 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002066/0.7906, allocations: 0.9383 MB / 0.95 GB, free: 8.445 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.7919, allocations: 1.172 MB / 0.9512 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.792, allocations: 1.219 kB / 0.9512 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.256e-05/0.792, allocations: 7.922 kB / 0.9512 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.337e-05/0.7921, allocations: 9.125 kB / 0.9512 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005301/0.7927, allocations: 146.9 kB / 0.9513 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.7929, allocations: 169.2 kB / 0.9515 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.793, allocations: 30.89 kB / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.7931, allocations: 74.41 kB / 0.9516 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.82e-05/0.7932, allocations: 58.84 kB / 0.9517 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.7933, allocations: 19.56 kB / 0.9517 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.306e-05/0.7933, allocations: 29.17 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.7934, allocations: 28.19 kB / 0.9517 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.022e-05/0.7935, allocations: 61.59 kB / 0.9518 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.7937, allocations: 164.8 kB / 0.9519 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.7937, allocations: 1.375 kB / 0.9519 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.804e-06/0.7937, allocations: 3.938 kB / 0.9519 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.241e-06/0.7937, allocations: 0 / 0.9519 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.0007063/0.7944, allocations: 466.2 kB / 0.9524 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.7945, allocations: 9.781 kB / 0.9524 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.286e-05/0.7946, allocations: 12.97 kB / 0.9524 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005107/0.7951, allocations: 243.2 kB / 0.9526 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.7951, allocations: 8.891 kB / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.7951, allocations: 18.12 kB / 0.9527 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.7954, allocations: 90.16 kB / 0.9528 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.7954, allocations: 9.375 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.7954, allocations: 0 / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.7954, allocations: 2.156 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.7956, allocations: 50.48 kB / 0.9528 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006929/0.7963, allocations: 393.6 kB / 0.9532 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.7964, allocations: 36.28 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.487e-05/0.7965, allocations: 28.02 kB / 0.9533 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.7966, allocations: 1.531 kB / 0.9533 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.7969, allocations: 96.42 kB / 0.9533 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 2.364e-06/0.7969, allocations: 0 / 0.9533 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004168/0.7973, allocations: 140.9 kB / 0.9535 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.738e-05/0.7973, allocations: 56.94 kB / 0.9535 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.7975, allocations: 160.5 kB / 0.9537 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.7975, allocations: 28.52 kB / 0.9537 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.956e-05/0.7975, allocations: 110.4 kB / 0.9538 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.7976, allocations: 27.86 kB / 0.9538 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.7977, allocations: 48.56 kB / 0.9539 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.217e-05/0.7977, allocations: 325.5 kB / 0.9542 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.7979, allocations: 51.36 kB / 0.9543 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.798, allocations: 132.6 kB / 0.9544 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.7983, allocations: 198.7 kB / 0.9546 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.7983, allocations: 1.281 kB / 0.9546 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004545/0.7988, allocations: 244.6 kB / 0.9548 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.7988, allocations: 43.91 kB / 0.9548 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.7989, allocations: 3.469 kB / 0.9548 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.7989, allocations: 8.281 kB / 0.9549 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.799, allocations: 22.69 kB / 0.9549 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.799, allocations: 10.81 kB / 0.9549 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.7993, allocations: 49.72 kB / 0.9549 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.681e-05/0.7993, allocations: 14.84 kB / 0.9549 GB, free: 4.258 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 8.683e-05/0.7994, allocations: 126.6 kB / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.7994, allocations: 12.77 kB / 0.9551 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.7995, allocations: 11.16 kB / 0.9551 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.7995, allocations: 0.9688 kB / 0.9551 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.7995, allocations: 3.938 kB / 0.9551 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7995, allocations: 5.156 kB / 0.9551 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004731/0.8, allocations: 394.5 kB / 0.9555 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8, allocations: 0 / 0.9555 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.024e-05/0.8001, allocations: 13.77 kB / 0.9555 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.8001, allocations: 5.344 kB / 0.9555 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.8001, allocations: 1.188 kB / 0.9555 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.8001, allocations: 5.125 kB / 0.9555 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.8001, allocations: 0 / 0.9555 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.8005, allocations: 247 kB / 0.9557 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/0.8005, allocations: 87.86 kB / 0.9558 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.8006, allocations: 1.594 kB / 0.9558 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.8007, allocations: 14.78 kB / 0.9558 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.8007, allocations: 16.27 kB / 0.9559 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.8008, allocations: 4.312 kB / 0.9559 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.178e-05/0.8008, allocations: 101.5 kB / 0.956 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8008, allocations: 0 / 0.956 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003017/0.8011, allocations: 33.78 kB / 0.956 GB, free: 3.316 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.000176/0.8013, allocations: 117 kB / 0.9561 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003891/0.8017, allocations: 187.4 kB / 0.9563 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8017, allocations: 0 / 0.9563 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.8018, allocations: 39.78 kB / 0.9563 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.8022, allocations: 20.19 kB / 0.9563 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.8027, allocations: 288.3 kB / 0.9566 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.8028, allocations: 0.7091 MB / 0.9573 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.046e-05/0.8029, allocations: 22.67 kB / 0.9573 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.8029, allocations: 14.03 kB / 0.9573 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of SimCode: time 5.41e-07/0.803, allocations: 1.312 kB / 0.9573 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of Templates: time 0.004591/0.8075, allocations: 1.59 MB / 0.9589 GB, free: 1.297 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