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.00221/0.00221, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.003102/0.003102, allocations: 217.6 kB / 22.25 MB, free: 5.129 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.539/1.539, allocations: 230.6 MB / 256 MB, free: 7.961 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.244/3.244, allocations: 0.505 GB / 0.8101 GB, free: 22.06 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [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.002095/0.002095, allocations: 68.45 kB / 1.177 GB, free: 17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3998, allocations: 180.2 MB / 1.353 GB, free: 8.395 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002243/0.4021, allocations: 0.8802 MB / 1.354 GB, free: 7.52 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001716/0.4038, allocations: 1.209 MB / 1.355 GB, free: 6.297 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.4039, allocations: 4 kB / 1.355 GB, free: 6.293 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.368e-05/0.4039, allocations: 11.86 kB / 1.355 GB, free: 6.281 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.3e-05/0.404, allocations: 15.88 kB / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.4045, allocations: 159.7 kB / 1.355 GB, free: 6.113 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.4048, allocations: 167.6 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.4049, allocations: 33.28 kB / 1.355 GB, free: 5.918 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.405, allocations: 67.83 kB / 1.355 GB, free: 5.852 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.4052, allocations: 67.73 kB / 1.355 GB, free: 5.785 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.4052, allocations: 16 kB / 1.355 GB, free: 5.77 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.693e-05/0.4053, allocations: 31.98 kB / 1.356 GB, free: 5.738 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.649e-05/0.4053, allocations: 23.92 kB / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.28e-05/0.4054, allocations: 63.7 kB / 1.356 GB, free: 5.652 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.4057, allocations: 171.6 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4057, allocations: 3.938 kB / 1.356 GB, free: 5.48 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4057, allocations: 4 kB / 1.356 GB, free: 5.477 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.4057, allocations: 0 / 1.356 GB, free: 5.477 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.0007831/0.4065, allocations: 422 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4065, allocations: 12.03 kB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.825e-05/0.4066, allocations: 38.75 kB / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/0.4066, allocations: 20.83 kB / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000515/0.4071, allocations: 178.5 kB / 1.356 GB, free: 4.738 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.4071, allocations: 8.375 kB / 1.356 GB, free: 4.73 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.4072, allocations: 16.38 kB / 1.356 GB, free: 4.715 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.4074, allocations: 93.89 kB / 1.357 GB, free: 4.617 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.4074, allocations: 0 / 1.357 GB, free: 4.617 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.4074, allocations: 4 kB / 1.357 GB, free: 4.613 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.4075, allocations: 4 kB / 1.357 GB, free: 4.609 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.4076, allocations: 47.95 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007566/0.4084, allocations: 371.5 kB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.4085, allocations: 30.56 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.841e-05/0.4086, allocations: 32.94 kB / 1.357 GB, free: 4.082 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.4086, allocations: 4 kB / 1.357 GB, free: 4.078 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002984/0.4089, allocations: 103.2 kB / 1.357 GB, free: 3.965 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.4089, allocations: 0 / 1.357 GB, free: 3.965 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0004347/0.4094, allocations: 133.5 kB / 1.357 GB, free: 3.828 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.4094, allocations: 59.34 kB / 1.357 GB, free: 3.758 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.4095, allocations: 139.7 kB / 1.357 GB, free: 3.613 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.4096, allocations: 33.7 kB / 1.357 GB, free: 3.574 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.912e-05/0.4097, allocations: 116.1 kB / 1.358 GB, free: 3.457 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.4097, allocations: 27.8 kB / 1.358 GB, free: 3.43 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.868e-05/0.4098, allocations: 45.64 kB / 1.358 GB, free: 3.379 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.4099, allocations: 322.8 kB / 1.358 GB, free: 3.055 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.4101, allocations: 51.95 kB / 1.358 GB, free: 3.004 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.4103, allocations: 129 kB / 1.358 GB, free: 2.84 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.4106, allocations: 204.6 kB / 1.358 GB, free: 2.594 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4107, allocations: 0 / 1.358 GB, free: 2.594 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004987/0.4112, allocations: 255.2 kB / 1.359 GB, free: 2.332 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.986e-05/0.4112, allocations: 37.69 kB / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4112, allocations: 0 / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.4112, allocations: 4 kB / 1.359 GB, free: 2.285 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.4113, allocations: 27.92 kB / 1.359 GB, free: 2.258 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4114, allocations: 7.938 kB / 1.359 GB, free: 2.25 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.4116, allocations: 39.89 kB / 1.359 GB, free: 2.211 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.4116, allocations: 12 kB / 1.359 GB, free: 2.199 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.0001293/0.4117, allocations: 134.5 kB / 1.359 GB, free: 2.059 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.4117, allocations: 15.84 kB / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.4118, allocations: 12.72 kB / 1.359 GB, free: 2.027 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4118, allocations: 3.938 kB / 1.359 GB, free: 2.023 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4118, allocations: 0 / 1.359 GB, free: 2.023 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.4118, allocations: 0 / 1.359 GB, free: 2.023 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006028/0.4124, allocations: 369.5 kB / 1.359 GB, free: 1.613 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4124, allocations: 0 / 1.359 GB, free: 1.613 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.4125, allocations: 19.92 kB / 1.359 GB, free: 1.594 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4125, allocations: 0 / 1.359 GB, free: 1.594 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.4125, allocations: 4 kB / 1.359 GB, free: 1.59 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4125, allocations: 0 / 1.359 GB, free: 1.59 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4125, allocations: 4.469 kB / 1.359 GB, free: 1.586 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.413, allocations: 247.2 kB / 1.359 GB, free: 1.328 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.819e-05/0.4131, allocations: 11.89 kB / 1.359 GB, free: 1.316 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.479e-05/0.4131, allocations: 4 kB / 1.359 GB, free: 1.312 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.4132, allocations: 8.031 kB / 1.359 GB, free: 1.305 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.4132, allocations: 11.98 kB / 1.359 GB, free: 1.293 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.4133, allocations: 4 kB / 1.359 GB, free: 1.289 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.805e-05/0.4134, allocations: 100.8 kB / 1.36 GB, free: 1.191 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4134, allocations: 8 kB / 1.36 GB, free: 1.184 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003401/0.4137, allocations: 39.88 kB / 1.36 GB, free: 1.145 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.0008902/0.4146, allocations: 0.7752 MB / 1.36 GB, free: 352 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004626/0.415, allocations: 167.2 kB / 1.361 GB, free: 172 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.415, allocations: 4 kB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.4152, allocations: 35.91 kB / 1.361 GB, free: 132 kB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.4155, allocations: 20.72 kB / 1.361 GB, free: 112 kB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.4182, allocations: 1.981 MB / 1.363 GB, free: 13.97 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.4185, allocations: 0.7084 MB / 1.363 GB, free: 13.23 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.733e-05/0.4186, allocations: 12.66 kB / 1.363 GB, free: 13.22 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.269e-05/0.4187, allocations: 39.42 kB / 1.363 GB, free: 13.18 MB / 1.061 GB Notification: Performance of SimCode: time 8.82e-07/0.4187, allocations: 0 / 1.363 GB, free: 13.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.4516, allocations: 3.332 MB / 1.367 GB, free: 9.992 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.77, allocations: 12.59 kB / 1.367 GB, free: 9.984 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 840.0] 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: 18.725747702876106]