Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 109.6 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 192.7 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 222.9 MB / 245.7 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.997/2.997, allocations: 489.3 MB / 0.7687 GB, free: 3.816 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.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_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002221/0.002221, allocations: 75.88 kB / 1.103 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.133/1.136, allocations: 163.8 MB / 1.263 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002128/1.138, allocations: 0.8924 MB / 1.264 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001572/1.139, allocations: 1.18 MB / 1.265 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/1.139, allocations: 2.125 kB / 1.265 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.34e-05/1.139, allocations: 9.516 kB / 1.265 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.842e-05/1.14, allocations: 19.19 kB / 1.265 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005379/1.14, allocations: 152.9 kB / 1.265 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002641/1.14, allocations: 163.9 kB / 1.265 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/1.141, allocations: 42.86 kB / 1.265 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/1.141, allocations: 65.47 kB / 1.265 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/1.141, allocations: 71.8 kB / 1.265 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/1.141, allocations: 14.78 kB / 1.265 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.371e-05/1.141, allocations: 29.33 kB / 1.265 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/1.141, allocations: 21.28 kB / 1.265 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.977e-05/1.141, allocations: 70.31 kB / 1.265 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002747/1.141, allocations: 165.7 kB / 1.265 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/1.141, allocations: 0.5156 kB / 1.265 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.084e-06/1.141, allocations: 4 kB / 1.265 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.581e-06/1.141, allocations: 0.6875 kB / 1.265 GB, free: 6.199 MB / 0.9981 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.0006582/1.142, allocations: 459 kB / 1.266 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/1.142, allocations: 10.81 kB / 1.266 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.891e-05/1.142, allocations: 16.88 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/1.143, allocations: 249.7 kB / 1.266 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/1.143, allocations: 9.5 kB / 1.266 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.9e-05/1.143, allocations: 22.33 kB / 1.266 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/1.143, allocations: 87.73 kB / 1.266 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/1.143, allocations: 3.938 kB / 1.266 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/1.143, allocations: 1.719 kB / 1.266 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/1.143, allocations: 2.062 kB / 1.266 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/1.143, allocations: 50.19 kB / 1.266 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006756/1.144, allocations: 388.5 kB / 1.267 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/1.144, allocations: 33.25 kB / 1.267 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.464e-05/1.144, allocations: 25.77 kB / 1.267 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/1.144, allocations: 6.156 kB / 1.267 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/1.144, allocations: 104.9 kB / 1.267 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/1.144, allocations: 0 / 1.267 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004524/1.145, allocations: 133.8 kB / 1.267 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/1.145, allocations: 61.72 kB / 1.267 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/1.145, allocations: 142.8 kB / 1.267 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/1.145, allocations: 33.2 kB / 1.267 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/1.145, allocations: 109.9 kB / 1.267 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/1.145, allocations: 26.86 kB / 1.267 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.692e-05/1.145, allocations: 47.64 kB / 1.267 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.183e-05/1.145, allocations: 322.5 kB / 1.268 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/1.146, allocations: 52.88 kB / 1.268 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/1.146, allocations: 133.4 kB / 1.268 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/1.146, allocations: 199.7 kB / 1.268 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.146, allocations: 1.062 kB / 1.268 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005171/1.147, allocations: 248.8 kB / 1.268 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.147e-05/1.147, allocations: 36.94 kB / 1.268 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/1.147, allocations: 3.281 kB / 1.268 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/1.147, allocations: 3.719 kB / 1.268 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/1.147, allocations: 31.47 kB / 1.268 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/1.147, allocations: 9.172 kB / 1.268 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/1.147, allocations: 47.5 kB / 1.268 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.117e-05/1.147, allocations: 11.55 kB / 1.268 GB, free: 3.785 MB / 0.9981 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 9.738e-05/1.147, allocations: 135.3 kB / 1.269 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.005e-05/1.147, allocations: 9.609 kB / 1.269 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.84e-05/1.147, allocations: 12.42 kB / 1.269 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.147, allocations: 5.75 kB / 1.269 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/1.147, allocations: 7.938 kB / 1.269 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.147, allocations: 1.344 kB / 1.269 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005414/1.148, allocations: 397.8 kB / 1.269 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/1.148, allocations: 0 / 1.269 GB, free: 3.293 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.731e-05/1.148, allocations: 16.91 kB / 1.269 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/1.148, allocations: 5.594 kB / 1.269 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/1.148, allocations: 10.12 kB / 1.269 GB, free: 3.277 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/1.148, allocations: 5.188 kB / 1.269 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/1.148, allocations: 0 / 1.269 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/1.148, allocations: 237.2 kB / 1.269 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.706e-05/1.148, allocations: 89.52 kB / 1.269 GB, free: 3.012 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/1.148, allocations: 6.188 kB / 1.269 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.253e-05/1.149, allocations: 10.09 kB / 1.269 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/1.149, allocations: 11.28 kB / 1.269 GB, free: 3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/1.149, allocations: 8.219 kB / 1.269 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.64e-05/1.149, allocations: 110.5 kB / 1.269 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/1.149, allocations: 0 / 1.269 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003007/1.149, allocations: 29.42 kB / 1.269 GB, free: 2.906 MB / 0.9981 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.0001812/1.149, allocations: 109.2 kB / 1.27 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004121/1.15, allocations: 182.9 kB / 1.27 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.15, allocations: 1.438 kB / 1.27 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/1.15, allocations: 39.3 kB / 1.27 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/1.15, allocations: 17.72 kB / 1.27 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/1.151, allocations: 288.3 kB / 1.27 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/1.151, allocations: 0.7039 MB / 1.271 GB, free: 1.785 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/1.151, allocations: 20.73 kB / 1.271 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of SimCode: time 5.01e-07/1.151, allocations: 3.938 kB / 1.271 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of Templates: time 0.005352/1.156, allocations: 1.74 MB / 1.273 GB, free: 1.598 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.727173161925748]