Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008671/0.0008671, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 178.2 kB / 23.22 MB, free: 1.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9102/0.9102, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.711/1.711, allocations: 359 MB / 0.6044 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 0.9518 GB, free: 2.914 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.153e-05, allocations: 2.281 kB / 0.9518 GB, free: 2.91 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001331/0.001353, allocations: 0.8601 MB / 0.9526 GB, free: 2.043 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.002479, allocations: 1.198 MB / 0.9538 GB, free: 0.832 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.189e-05/0.002531, allocations: 0 / 0.9538 GB, free: 0.832 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.643e-05/0.002568, allocations: 11.86 kB / 0.9538 GB, free: 0.8203 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.525e-05/0.002643, allocations: 19.8 kB / 0.9538 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000417/0.00306, allocations: 158.9 kB / 0.954 GB, free: 0.6484 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.003227, allocations: 163.6 kB / 0.9541 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.003346, allocations: 33.28 kB / 0.9542 GB, free: 464 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.003466, allocations: 87.86 kB / 0.9543 GB, free: 376 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 8.651e-05/0.003552, allocations: 51.86 kB / 0.9543 GB, free: 324 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.003578, allocations: 16 kB / 0.9543 GB, free: 308 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.003639, allocations: 27.97 kB / 0.9544 GB, free: 280 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.759e-05/0.003666, allocations: 27.92 kB / 0.9544 GB, free: 252 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 5.384e-05/0.00372, allocations: 47.89 kB / 0.9544 GB, free: 204 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.00393, allocations: 199.3 kB / 0.9546 GB, free: 4 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.003933, allocations: 0 / 0.9546 GB, free: 4 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.322e-06/0.003934, allocations: 0 / 0.9546 GB, free: 4 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.003938, allocations: 0 / 0.9546 GB, free: 4 kB / 0.9011 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.000577/0.004515, allocations: 418 kB / 0.955 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.00455, allocations: 8.031 kB / 0.955 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.004601, allocations: 16.84 kB / 0.955 GB, free: 15.52 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.004927, allocations: 189.8 kB / 0.9552 GB, free: 15.31 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.004941, allocations: 8.375 kB / 0.9552 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.004969, allocations: 16.31 kB / 0.9552 GB, free: 15.29 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.00512, allocations: 97.31 kB / 0.9553 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.005129, allocations: 192 / 0.9553 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.005142, allocations: 4.375 kB / 0.9553 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.005149, allocations: 8.125 kB / 0.9553 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.076e-05/0.005239, allocations: 43.95 kB / 0.9554 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004841/0.005723, allocations: 316.2 kB / 0.9557 GB, free: 14.8 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.9e-05/0.005802, allocations: 34.56 kB / 0.9557 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.689e-05/0.005849, allocations: 20.97 kB / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.00587, allocations: 4 kB / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004282/0.006298, allocations: 103.2 kB / 0.9558 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.006299, allocations: 7.938 kB / 0.9559 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of matching and sorting (n=10): time 0.00027/0.006569, allocations: 129.5 kB / 0.956 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.006602, allocations: 55.41 kB / 0.956 GB, free: 14.41 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.674e-05/0.006689, allocations: 143.7 kB / 0.9562 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.006712, allocations: 33.7 kB / 0.9562 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.656e-05/0.006768, allocations: 104 kB / 0.9563 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.006787, allocations: 27.89 kB / 0.9563 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/0.00684, allocations: 49.69 kB / 0.9564 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.72e-05/0.006917, allocations: 330.8 kB / 0.9567 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.007022, allocations: 77.66 kB / 0.9568 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.007144, allocations: 163.4 kB / 0.9569 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.007327, allocations: 208.6 kB / 0.9571 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.00733, allocations: 4 kB / 0.9571 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002985/0.007629, allocations: 276.6 kB / 0.9574 GB, free: 12.87 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.007659, allocations: 37.7 kB / 0.9574 GB, free: 12.83 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.007664, allocations: 0 / 0.9574 GB, free: 12.83 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.00768, allocations: 4 kB / 0.9574 GB, free: 12.82 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/0.007742, allocations: 28.34 kB / 0.9575 GB, free: 12.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.00775, allocations: 7.938 kB / 0.9575 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.007864, allocations: 40.23 kB / 0.9575 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.007882, allocations: 19.98 kB / 0.9575 GB, free: 12.73 MB / 0.9167 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 7.261e-05/0.007954, allocations: 129.7 kB / 0.9576 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.008e-05/0.007964, allocations: 7.953 kB / 0.9576 GB, free: 12.59 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.007993, allocations: 16.77 kB / 0.9577 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.007996, allocations: 3.984 kB / 0.9577 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.008002, allocations: 7.984 kB / 0.9577 GB, free: 12.56 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.008006, allocations: 0 / 0.9577 GB, free: 12.56 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.008322, allocations: 334.1 kB / 0.958 GB, free: 12.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.008325, allocations: 3.984 kB / 0.958 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.453e-05/0.008369, allocations: 8 kB / 0.958 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.008371, allocations: 4 kB / 0.958 GB, free: 12.18 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.008381, allocations: 7.984 kB / 0.958 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.008383, allocations: 0 / 0.958 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.008384, allocations: 0 / 0.958 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.008608, allocations: 243.3 kB / 0.9582 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.395e-05/0.008622, allocations: 15.92 kB / 0.9583 GB, free: 11.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.008639, allocations: 7.938 kB / 0.9583 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.458e-05/0.008683, allocations: 8 kB / 0.9583 GB, free: 11.89 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.008718, allocations: 3.984 kB / 0.9583 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.008728, allocations: 15.92 kB / 0.9583 GB, free: 11.87 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 4.524e-05/0.008774, allocations: 105.3 kB / 0.9584 GB, free: 11.77 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008774, allocations: 0 / 0.9584 GB, free: 11.77 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001898/0.008963, allocations: 31.95 kB / 0.9584 GB, free: 11.73 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.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.0001205/0.009084, allocations: 115.2 kB / 0.9585 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002459/0.00933, allocations: 192.9 kB / 0.9587 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.009331, allocations: 0 / 0.9587 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.168e-05/0.009393, allocations: 44.78 kB / 0.9588 GB, free: 11.36 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.009598, allocations: 23.98 kB / 0.9588 GB, free: 11.34 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.01, allocations: 271.3 kB / 0.959 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.063e-05/0.01006, allocations: 97.73 kB / 0.9591 GB, free: 10.93 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.01009, allocations: 20.5 kB / 0.9592 GB, free: 10.91 MB / 0.9167 GB Notification: Performance of SimCode: time 7.82e-07/0.01009, allocations: 0 / 0.9592 GB, free: 10.91 MB / 0.9167 GB Notification: Performance of Templates: time 0.002425/0.01252, allocations: 1.785 MB / 0.9609 GB, free: 9.129 MB / 0.9167 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.54203053470701]