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.001696/0.001696, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001826/0.001826, allocations: 220.3 kB / 23.03 MB, free: 4.941 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.583/1.583, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.239/3.239, allocations: 0.5003 GB / 0.8062 GB, free: 28.31 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="cs",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.002018/0.002018, allocations: 66.17 kB / 1.171 GB, free: 19.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3862, allocations: 179 MB / 1.345 GB, free: 15.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002382/0.3886, allocations: 0.8505 MB / 1.346 GB, free: 15.07 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001842/0.3904, allocations: 1.194 MB / 1.347 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.3905, allocations: 0 / 1.347 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.914e-05/0.3905, allocations: 11.88 kB / 1.347 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.3906, allocations: 23.8 kB / 1.347 GB, free: 13.83 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.3913, allocations: 152.7 kB / 1.348 GB, free: 13.69 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.3916, allocations: 167.6 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.3917, allocations: 29.3 kB / 1.348 GB, free: 13.5 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.3919, allocations: 71.81 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.3921, allocations: 63.75 kB / 1.348 GB, free: 13.36 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.3921, allocations: 16 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.231e-05/0.3922, allocations: 35.97 kB / 1.348 GB, free: 13.31 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.961e-05/0.3922, allocations: 19.92 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.217e-05/0.3923, allocations: 55.78 kB / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.3926, allocations: 175.6 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3926, allocations: 0 / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3926, allocations: 0 / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.3926, allocations: 0 / 1.348 GB, free: 13.07 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.0008919/0.3935, allocations: 418 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.3936, allocations: 8.031 kB / 1.349 GB, free: 12.6 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.925e-05/0.3936, allocations: 4.188 kB / 1.349 GB, free: 12.6 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.472e-05/0.3936, allocations: 38.75 kB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.267e-05/0.3937, allocations: 24.83 kB / 1.349 GB, free: 12.53 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.3943, allocations: 190.4 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3944, allocations: 4.375 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.3944, allocations: 20.31 kB / 1.349 GB, free: 12.29 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.3947, allocations: 92.44 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3947, allocations: 4 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.3947, allocations: 4 kB / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3947, allocations: 0 / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3949, allocations: 47.95 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009747/0.3959, allocations: 343.6 kB / 1.349 GB, free: 11.77 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.3961, allocations: 34.56 kB / 1.349 GB, free: 11.72 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3962, allocations: 32.77 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.3962, allocations: 7.984 kB / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003764/0.3966, allocations: 99.38 kB / 1.349 GB, free: 11.57 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3966, allocations: 0 / 1.349 GB, free: 11.57 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0005102/0.3971, allocations: 137.5 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3971, allocations: 51.41 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.3973, allocations: 151.1 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.3974, allocations: 29.7 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.3975, allocations: 119.9 kB / 1.35 GB, free: 11.05 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.073e-05/0.3975, allocations: 27.8 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3976, allocations: 45.69 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.3978, allocations: 326.8 kB / 1.35 GB, free: 10.65 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.398, allocations: 77.66 kB / 1.35 GB, free: 10.57 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.3983, allocations: 162.4 kB / 1.35 GB, free: 10.36 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.3987, allocations: 208.6 kB / 1.351 GB, free: 10.11 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3987, allocations: 4 kB / 1.351 GB, free: 10.11 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005807/0.3993, allocations: 272.7 kB / 1.351 GB, free: 9.824 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.3993, allocations: 34.08 kB / 1.351 GB, free: 9.785 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.3993, allocations: 4 kB / 1.351 GB, free: 9.781 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.3993, allocations: 7.938 kB / 1.351 GB, free: 9.773 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.3995, allocations: 31.91 kB / 1.351 GB, free: 9.742 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3995, allocations: 4 kB / 1.351 GB, free: 9.738 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003191/0.3998, allocations: 35.92 kB / 1.351 GB, free: 9.703 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.3998, allocations: 15.98 kB / 1.351 GB, free: 9.688 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.0001448/0.4, allocations: 129.7 kB / 1.351 GB, free: 9.551 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.4, allocations: 11.95 kB / 1.351 GB, free: 9.539 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.4, allocations: 20.7 kB / 1.351 GB, free: 9.516 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.4, allocations: 3.938 kB / 1.351 GB, free: 9.512 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4001, allocations: 3.938 kB / 1.351 GB, free: 9.508 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4001, allocations: 4 kB / 1.351 GB, free: 9.504 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006405/0.4007, allocations: 353.9 kB / 1.352 GB, free: 9.109 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.4007, allocations: 3.938 kB / 1.352 GB, free: 9.105 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.573e-05/0.4008, allocations: 16.02 kB / 1.352 GB, free: 9.09 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.4008, allocations: 11.94 kB / 1.352 GB, free: 9.078 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.4008, allocations: 4 kB / 1.352 GB, free: 9.074 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.4008, allocations: 4 kB / 1.352 GB, free: 9.07 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4008, allocations: 0 / 1.352 GB, free: 9.07 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.4013, allocations: 239.3 kB / 1.352 GB, free: 8.82 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.849e-05/0.4013, allocations: 11.89 kB / 1.352 GB, free: 8.809 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.4013, allocations: 4 kB / 1.352 GB, free: 8.805 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.4014, allocations: 8.031 kB / 1.352 GB, free: 8.797 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.4014, allocations: 11.98 kB / 1.352 GB, free: 8.785 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.4015, allocations: 8 kB / 1.352 GB, free: 8.777 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.765e-05/0.4016, allocations: 108.8 kB / 1.352 GB, free: 8.672 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4016, allocations: 0 / 1.352 GB, free: 8.672 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003382/0.4019, allocations: 35.89 kB / 1.352 GB, free: 8.637 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.001072/0.403, allocations: 0.7748 MB / 1.353 GB, free: 7.836 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005044/0.4035, allocations: 200.8 kB / 1.353 GB, free: 7.621 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4035, allocations: 0 / 1.353 GB, free: 7.621 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.4036, allocations: 31.97 kB / 1.353 GB, free: 7.59 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.404, allocations: 30.59 kB / 1.353 GB, free: 7.562 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.4071, allocations: 2.091 MB / 1.355 GB, free: 5.281 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.4073, allocations: 97.61 kB / 1.355 GB, free: 5.164 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.008e-05/0.4074, allocations: 12.66 kB / 1.355 GB, free: 5.148 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.154e-05/0.4075, allocations: 39.42 kB / 1.355 GB, free: 5.109 MB / 1.045 GB Notification: Performance of SimCode: time 6.81e-07/0.4075, allocations: 0 / 1.355 GB, free: 5.109 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.4363, allocations: 3.478 MB / 1.359 GB, free: 1.816 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.08, allocations: 6.031 kB / 1.359 GB, free: 1.812 MB / 1.045 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: 19.10459197196178]