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.001684/0.001684, allocations: 114.7 kB / 17.16 MB, free: 6.004 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.001998/0.001998, allocations: 212.6 kB / 20.13 MB, free: 3.055 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.582/1.582, allocations: 230.6 MB / 253.5 MB, free: 15.08 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 2.976/2.976, allocations: 0.5003 GB / 0.8026 GB, free: 6.703 MB / 0.6387 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.00212/0.00212, allocations: 68.19 kB / 1.165 GB, free: 424 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038/1.04, allocations: 178.9 MB / 1.34 GB, free: 16.27 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002825/1.043, allocations: 0.8872 MB / 1.341 GB, free: 15.69 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002074/1.045, allocations: 1.2 MB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.579e-05/1.045, allocations: 1.312 kB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.71e-05/1.045, allocations: 18 kB / 1.342 GB, free: 14.8 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001166/1.046, allocations: 23.7 kB / 1.342 GB, free: 14.78 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007258/1.046, allocations: 153.6 kB / 1.342 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000278/1.047, allocations: 167.6 kB / 1.343 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/1.047, allocations: 36.5 kB / 1.343 GB, free: 14.6 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/1.047, allocations: 69.42 kB / 1.343 GB, free: 14.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/1.047, allocations: 67.05 kB / 1.343 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.827e-05/1.047, allocations: 15.34 kB / 1.343 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.297e-05/1.047, allocations: 32.75 kB / 1.343 GB, free: 14.53 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.271e-05/1.047, allocations: 25.58 kB / 1.343 GB, free: 14.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.99e-05/1.047, allocations: 62.67 kB / 1.343 GB, free: 14.48 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003285/1.048, allocations: 172 kB / 1.343 GB, free: 14.41 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/1.048, allocations: 1.469 kB / 1.343 GB, free: 14.41 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.264e-06/1.048, allocations: 0 / 1.343 GB, free: 14.41 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.351e-05/1.048, allocations: 0 / 1.343 GB, free: 14.41 MB / 1.061 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.0006882/1.048, allocations: 463.9 kB / 1.343 GB, free: 13.97 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/1.048, allocations: 10.03 kB / 1.343 GB, free: 13.97 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.689e-05/1.048, allocations: 5.25 kB / 1.344 GB, free: 13.97 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.868e-05/1.048, allocations: 40.52 kB / 1.344 GB, free: 13.93 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/1.048, allocations: 17.23 kB / 1.344 GB, free: 13.92 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005458/1.049, allocations: 246.2 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/1.049, allocations: 6.359 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/1.049, allocations: 14.09 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/1.049, allocations: 99.62 kB / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/1.049, allocations: 0 / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/1.049, allocations: 1.828 kB / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/1.049, allocations: 1.5 kB / 1.344 GB, free: 13.64 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/1.05, allocations: 50.06 kB / 1.344 GB, free: 13.63 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007755/1.05, allocations: 393.3 kB / 1.344 GB, free: 13.3 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/1.051, allocations: 39.42 kB / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/1.051, allocations: 22.78 kB / 1.344 GB, free: 13.27 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.072e-05/1.051, allocations: 5.625 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003626/1.051, allocations: 100.8 kB / 1.344 GB, free: 13.2 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/1.051, allocations: 0 / 1.344 GB, free: 13.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0005286/1.052, allocations: 145.8 kB / 1.345 GB, free: 13.13 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/1.052, allocations: 53.89 kB / 1.345 GB, free: 13.07 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/1.052, allocations: 138.6 kB / 1.345 GB, free: 12.96 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/1.052, allocations: 32.81 kB / 1.345 GB, free: 12.92 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/1.052, allocations: 118.6 kB / 1.345 GB, free: 12.81 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/1.052, allocations: 34.11 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.023e-05/1.052, allocations: 47.77 kB / 1.345 GB, free: 12.76 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.108e-05/1.052, allocations: 320.8 kB / 1.345 GB, free: 12.44 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/1.052, allocations: 44.62 kB / 1.345 GB, free: 12.43 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/1.052, allocations: 130.7 kB / 1.346 GB, free: 12.31 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/1.053, allocations: 203.2 kB / 1.346 GB, free: 12.13 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/1.053, allocations: 1.375 kB / 1.346 GB, free: 12.13 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004776/1.053, allocations: 249.2 kB / 1.346 GB, free: 12 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/1.053, allocations: 35.92 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/1.053, allocations: 2.75 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/1.053, allocations: 8.062 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/1.053, allocations: 28.31 kB / 1.346 GB, free: 11.96 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/1.053, allocations: 7.531 kB / 1.346 GB, free: 11.96 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/1.054, allocations: 31.8 kB / 1.346 GB, free: 11.96 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/1.054, allocations: 15.73 kB / 1.346 GB, free: 11.96 MB / 1.061 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.891e-05/1.054, allocations: 130.9 kB / 1.346 GB, free: 11.83 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/1.054, allocations: 13.41 kB / 1.346 GB, free: 11.82 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.345e-05/1.054, allocations: 15.17 kB / 1.346 GB, free: 11.81 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/1.054, allocations: 10.09 kB / 1.346 GB, free: 11.8 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/1.054, allocations: 1.375 kB / 1.346 GB, free: 11.8 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/1.054, allocations: 0.6094 kB / 1.346 GB, free: 11.8 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/1.054, allocations: 396.4 kB / 1.347 GB, free: 11.47 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/1.054, allocations: 5.312 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.416e-05/1.054, allocations: 13.09 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/1.054, allocations: 3.984 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/1.054, allocations: 2.125 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/1.054, allocations: 5.375 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.054, allocations: 0.7969 kB / 1.347 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/1.055, allocations: 256.2 kB / 1.347 GB, free: 11.28 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.427e-05/1.055, allocations: 92.62 kB / 1.347 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/1.055, allocations: 2.766 kB / 1.347 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.245e-05/1.055, allocations: 6.141 kB / 1.347 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/1.055, allocations: 10.2 kB / 1.347 GB, free: 11.17 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/1.055, allocations: 5.156 kB / 1.347 GB, free: 11.17 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.394e-05/1.055, allocations: 107.5 kB / 1.347 GB, free: 11.09 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.055, allocations: 4 kB / 1.347 GB, free: 11.09 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002997/1.055, allocations: 36.69 kB / 1.347 GB, free: 11.07 MB / 1.061 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.0006243/1.056, allocations: 0.7798 MB / 1.348 GB, free: 10.38 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003847/1.056, allocations: 168.2 kB / 1.348 GB, free: 10.29 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.056, allocations: 0 / 1.348 GB, free: 10.29 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000139/1.056, allocations: 36.75 kB / 1.348 GB, free: 10.28 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/1.057, allocations: 19.8 kB / 1.348 GB, free: 10.28 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002121/1.059, allocations: 1.971 MB / 1.35 GB, free: 8.641 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/1.059, allocations: 0.705 MB / 1.351 GB, free: 7.945 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.487e-05/1.059, allocations: 15.72 kB / 1.351 GB, free: 7.941 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.673e-05/1.059, allocations: 38.45 kB / 1.351 GB, free: 7.918 MB / 1.061 GB Notification: Performance of SimCode: time 6.31e-07/1.059, allocations: 0 / 1.351 GB, free: 7.918 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/1.081, allocations: 3.24 MB / 1.354 GB, free: 7.406 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.782/9.863, allocations: 16.42 kB / 1.354 GB, free: 7.398 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.6110945980181]