Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.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.001389/0.001389, allocations: 116.8 kB / 17.17 MB, free: 6 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.0016/0.0016, allocations: 214.3 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.539/1.539, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.212/3.212, allocations: 0.5003 GB / 0.8026 GB, free: 6.738 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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_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.002123/0.002123, allocations: 59.91 kB / 1.165 GB, free: 500 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062/1.064, allocations: 178.9 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002785/1.067, allocations: 1.851 MB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.000977/1.068, allocations: 0.5789 MB / 1.343 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/1.068, allocations: 11.28 kB / 1.343 GB, free: 14.53 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001497/1.068, allocations: 22.44 kB / 1.343 GB, free: 14.52 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.404e-05/1.068, allocations: 25.25 kB / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/1.069, allocations: 72.58 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002963/1.069, allocations: 175.2 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/1.069, allocations: 33 kB / 1.343 GB, free: 14.36 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/1.069, allocations: 58.97 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/1.069, allocations: 57.53 kB / 1.343 GB, free: 14.3 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/1.069, allocations: 9.812 kB / 1.343 GB, free: 14.3 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 2.897e-05/1.069, allocations: 11.16 kB / 1.343 GB, free: 14.3 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.863e-05/1.069, allocations: 29.52 kB / 1.343 GB, free: 14.28 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.885e-05/1.069, allocations: 63.75 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002752/1.07, allocations: 135.4 kB / 1.343 GB, free: 14.17 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/1.07, allocations: 4.609 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.813e-06/1.07, allocations: 0 / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.081e-05/1.07, allocations: 1.812 kB / 1.343 GB, free: 14.16 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008147/1.071, allocations: 484 kB / 1.344 GB, free: 13.73 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/1.071, allocations: 13.97 kB / 1.344 GB, free: 13.72 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.743e-05/1.071, allocations: 2.938 kB / 1.344 GB, free: 13.72 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.79e-05/1.071, allocations: 45.36 kB / 1.344 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/1.071, allocations: 23.03 kB / 1.344 GB, free: 13.66 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/1.071, allocations: 236.7 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/1.071, allocations: 8.5 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.064e-05/1.071, allocations: 12.62 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/1.071, allocations: 150.5 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/1.071, allocations: 0.7031 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/1.072, allocations: 6.75 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/1.072, allocations: 2.75 kB / 1.344 GB, free: 13.32 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/1.072, allocations: 76.28 kB / 1.344 GB, free: 13.29 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/1.073, allocations: 0.7377 MB / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/1.073, allocations: 46.3 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/1.073, allocations: 34.02 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/1.073, allocations: 4.969 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/1.073, allocations: 127.5 kB / 1.345 GB, free: 12.47 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 2.215e-06/1.073, allocations: 1.219 kB / 1.345 GB, free: 12.47 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0005838/1.074, allocations: 160.5 kB / 1.345 GB, free: 12.4 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/1.074, allocations: 139.4 kB / 1.345 GB, free: 12.24 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/1.074, allocations: 200.3 kB / 1.346 GB, free: 12.11 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/1.074, allocations: 27.83 kB / 1.346 GB, free: 12.07 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.312e-05/1.074, allocations: 138.3 kB / 1.346 GB, free: 11.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.112e-05/1.074, allocations: 35.5 kB / 1.346 GB, free: 11.92 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.868e-05/1.075, allocations: 40.09 kB / 1.346 GB, free: 11.89 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 8.977e-05/1.075, allocations: 328.6 kB / 1.346 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/1.075, allocations: 36.47 kB / 1.346 GB, free: 11.57 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/1.075, allocations: 163.5 kB / 1.346 GB, free: 11.39 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/1.075, allocations: 198 kB / 1.347 GB, free: 11.21 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/1.075, allocations: 1.312 kB / 1.347 GB, free: 11.21 MB / 1.061 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004342/1.076, allocations: 215.9 kB / 1.347 GB, free: 11.11 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/1.076, allocations: 8.078 kB / 1.347 GB, free: 11.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/1.076, allocations: 8.125 kB / 1.347 GB, free: 11.11 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/1.076, allocations: 5.5 kB / 1.347 GB, free: 11.11 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/1.076, allocations: 37.41 kB / 1.347 GB, free: 11.1 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/1.076, allocations: 6.109 kB / 1.347 GB, free: 11.1 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/1.076, allocations: 28.39 kB / 1.347 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/1.076, allocations: 8.25 kB / 1.347 GB, free: 11.09 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.899e-05/1.076, allocations: 135.2 kB / 1.347 GB, free: 10.96 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/1.076, allocations: 18.09 kB / 1.347 GB, free: 10.95 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/1.076, allocations: 24.06 kB / 1.347 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/1.076, allocations: 2.75 kB / 1.347 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/1.076, allocations: 1.984 kB / 1.347 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/1.076, allocations: 1.984 kB / 1.347 GB, free: 10.93 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007397/1.077, allocations: 0.5138 MB / 1.348 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/1.077, allocations: 4.656 kB / 1.348 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/1.077, allocations: 19.89 kB / 1.348 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/1.077, allocations: 2.078 kB / 1.348 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/1.077, allocations: 2.75 kB / 1.348 GB, free: 10.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/1.077, allocations: 10 kB / 1.348 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.077, allocations: 1.375 kB / 1.348 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/1.078, allocations: 365 kB / 1.348 GB, free: 10.21 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/1.078, allocations: 95.17 kB / 1.348 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/1.078, allocations: 3.656 kB / 1.348 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/1.078, allocations: 15.3 kB / 1.348 GB, free: 10.1 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/1.078, allocations: 13.73 kB / 1.348 GB, free: 10.1 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/1.078, allocations: 8.562 kB / 1.348 GB, free: 10.09 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001043/1.078, allocations: 147.5 kB / 1.348 GB, free: 9.996 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.078, allocations: 0 / 1.348 GB, free: 9.996 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003263/1.078, allocations: 26.58 kB / 1.348 GB, free: 9.992 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0006413/1.079, allocations: 0.8997 MB / 1.349 GB, free: 9.188 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003374/1.079, allocations: 112.3 kB / 1.349 GB, free: 9.156 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/1.079, allocations: 0 / 1.349 GB, free: 9.156 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000143/1.079, allocations: 46.14 kB / 1.349 GB, free: 9.145 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/1.08, allocations: 71.52 kB / 1.349 GB, free: 9.121 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/1.082, allocations: 2.268 MB / 1.352 GB, free: 7.258 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/1.083, allocations: 0.7195 MB / 1.352 GB, free: 6.562 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000116/1.083, allocations: 20.67 kB / 1.352 GB, free: 6.555 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.607e-05/1.083, allocations: 54.17 kB / 1.352 GB, free: 6.516 MB / 1.061 GB Notification: Performance of SimCode: time 1.182e-06/1.083, allocations: 0 / 1.352 GB, free: 6.516 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/1.114, allocations: 4.108 MB / 1.356 GB, free: 5.918 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.463/9.577, allocations: 9.234 kB / 1.356 GB, free: 5.914 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.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.563186637009494]