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.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.001347/0.001347, allocations: 110.5 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001574/0.001574, allocations: 216.7 kB / 23.01 MB, free: 4.566 MB / 14.72 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 1.493/1.493, allocations: 230.6 MB / 256.8 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.232/3.232, allocations: 0.505 GB / 0.8108 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002913/0.002913, allocations: 65.81 kB / 1.178 GB, free: 16.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4028, allocations: 180.2 MB / 1.354 GB, free: 7.926 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002126/0.4049, allocations: 0.8894 MB / 1.355 GB, free: 7.039 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001602/0.4065, allocations: 1.206 MB / 1.356 GB, free: 5.82 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.119e-05/0.4066, allocations: 3.938 kB / 1.356 GB, free: 5.816 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.474e-05/0.4066, allocations: 7.875 kB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.607e-05/0.4067, allocations: 23.84 kB / 1.356 GB, free: 5.785 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005104/0.4072, allocations: 148.8 kB / 1.356 GB, free: 5.645 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.4074, allocations: 167.7 kB / 1.357 GB, free: 5.48 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.4075, allocations: 29.28 kB / 1.357 GB, free: 5.453 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.4077, allocations: 71.77 kB / 1.357 GB, free: 5.383 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.4078, allocations: 71.73 kB / 1.357 GB, free: 5.312 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.037e-05/0.4078, allocations: 16 kB / 1.357 GB, free: 5.297 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.231e-05/0.4079, allocations: 24 kB / 1.357 GB, free: 5.273 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.502e-05/0.4079, allocations: 31.89 kB / 1.357 GB, free: 5.242 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.301e-05/0.408, allocations: 63.72 kB / 1.357 GB, free: 5.18 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.4082, allocations: 171.3 kB / 1.357 GB, free: 5.012 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.4082, allocations: 0 / 1.357 GB, free: 5.012 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4082, allocations: 0 / 1.357 GB, free: 5.012 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.4082, allocations: 0 / 1.357 GB, free: 5.012 MB / 1.045 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.0007463/0.409, allocations: 430 kB / 1.357 GB, free: 4.543 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.409, allocations: 8.031 kB / 1.357 GB, free: 4.535 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.008e-05/0.4091, allocations: 16.84 kB / 1.357 GB, free: 4.52 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005219/0.4096, allocations: 188.3 kB / 1.358 GB, free: 4.312 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.4096, allocations: 8.375 kB / 1.358 GB, free: 4.305 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.4097, allocations: 8.375 kB / 1.358 GB, free: 4.297 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.4099, allocations: 95.89 kB / 1.358 GB, free: 4.199 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.4099, allocations: 3.938 kB / 1.358 GB, free: 4.195 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.4099, allocations: 7.938 kB / 1.358 GB, free: 4.188 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.4099, allocations: 4 kB / 1.358 GB, free: 4.184 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.4101, allocations: 39.95 kB / 1.358 GB, free: 4.145 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007328/0.4108, allocations: 367.5 kB / 1.358 GB, free: 3.742 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.411, allocations: 38.56 kB / 1.358 GB, free: 3.695 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.38e-05/0.4111, allocations: 24.97 kB / 1.358 GB, free: 3.668 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.4111, allocations: 3.984 kB / 1.358 GB, free: 3.664 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.4113, allocations: 103.2 kB / 1.358 GB, free: 3.551 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.4113, allocations: 0 / 1.358 GB, free: 3.551 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0004111/0.4118, allocations: 129.5 kB / 1.358 GB, free: 3.418 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.4118, allocations: 59.34 kB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.4119, allocations: 143.5 kB / 1.359 GB, free: 3.199 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.412, allocations: 33.7 kB / 1.359 GB, free: 3.16 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.4121, allocations: 112.1 kB / 1.359 GB, free: 3.047 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.4121, allocations: 27.8 kB / 1.359 GB, free: 3.02 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.4122, allocations: 49.69 kB / 1.359 GB, free: 2.965 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4123, allocations: 323.2 kB / 1.359 GB, free: 2.641 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.4125, allocations: 51.95 kB / 1.359 GB, free: 2.59 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.4127, allocations: 127.1 kB / 1.359 GB, free: 2.426 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.4131, allocations: 204.6 kB / 1.359 GB, free: 2.18 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4131, allocations: 7.938 kB / 1.359 GB, free: 2.172 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005026/0.4136, allocations: 247.3 kB / 1.36 GB, free: 1.918 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.4136, allocations: 37.69 kB / 1.36 GB, free: 1.875 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4136, allocations: 7.938 kB / 1.36 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.4136, allocations: 4 kB / 1.36 GB, free: 1.863 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.4138, allocations: 23.98 kB / 1.36 GB, free: 1.84 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.4138, allocations: 11.88 kB / 1.36 GB, free: 1.828 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.414, allocations: 39.89 kB / 1.36 GB, free: 1.789 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.414, allocations: 12 kB / 1.36 GB, free: 1.777 MB / 1.045 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.000124/0.4141, allocations: 134.4 kB / 1.36 GB, free: 1.637 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.4142, allocations: 15.89 kB / 1.36 GB, free: 1.621 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.867e-05/0.4142, allocations: 12.72 kB / 1.36 GB, free: 1.605 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.4142, allocations: 4.031 kB / 1.36 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4142, allocations: 3.938 kB / 1.36 GB, free: 1.598 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4142, allocations: 0 / 1.36 GB, free: 1.598 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005829/0.4148, allocations: 373.5 kB / 1.36 GB, free: 1.184 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4148, allocations: 0 / 1.36 GB, free: 1.184 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.35e-05/0.4149, allocations: 15.98 kB / 1.36 GB, free: 1.168 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.4149, allocations: 3.938 kB / 1.36 GB, free: 1.164 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.4149, allocations: 4 kB / 1.36 GB, free: 1.16 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.4149, allocations: 4 kB / 1.36 GB, free: 1.156 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4149, allocations: 0 / 1.36 GB, free: 1.156 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004224/0.4153, allocations: 243.4 kB / 1.361 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.717e-05/0.4154, allocations: 7.891 kB / 1.361 GB, free: 0.8945 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.638e-05/0.4154, allocations: 8 kB / 1.361 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.92e-05/0.4155, allocations: 7.984 kB / 1.361 GB, free: 0.8789 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.396e-05/0.4155, allocations: 3.984 kB / 1.361 GB, free: 0.875 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.4155, allocations: 8 kB / 1.361 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001067/0.4156, allocations: 105.2 kB / 1.361 GB, free: 0.7656 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.4156, allocations: 4 kB / 1.361 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003146/0.416, allocations: 39.81 kB / 1.361 GB, free: 0.7227 MB / 1.045 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.0002137/0.4162, allocations: 107.2 kB / 1.361 GB, free: 0.6094 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004546/0.4166, allocations: 163.8 kB / 1.361 GB, free: 448 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4166, allocations: 128 / 1.361 GB, free: 448 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.4168, allocations: 47.84 kB / 1.361 GB, free: 400 kB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.4171, allocations: 19.92 kB / 1.361 GB, free: 380 kB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00068/0.4177, allocations: 291.1 kB / 1.361 GB, free: 56 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.4182, allocations: 0.7084 MB / 1.362 GB, free: 15.32 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.4182, allocations: 23.42 kB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of SimCode: time 3.41e-07/0.4182, allocations: 0 / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of Templates: time 0.00441/0.4226, allocations: 1.732 MB / 1.364 GB, free: 13.57 MB / 1.061 GB " [Timeout remaining time 300] 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/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.754461931006517]