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.001359/0.001359, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001513/0.001513, allocations: 212.4 kB / 22.24 MB, free: 5.262 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.789 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.375/3.375, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_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.002099/0.002099, allocations: 75.58 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4157, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003523/0.4192, allocations: 1.79 MB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.4204, allocations: 0.5466 MB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.4205, allocations: 7.938 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.4207, allocations: 23.73 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.085e-05/0.4207, allocations: 31.66 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.421, allocations: 79.84 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.4212, allocations: 163.5 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.4213, allocations: 34.02 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.648e-05/0.4214, allocations: 59.72 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.794e-05/0.4215, allocations: 55.62 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.4215, allocations: 8 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 2.317e-05/0.4216, allocations: 12 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.973e-05/0.4216, allocations: 31.86 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.61e-05/0.4217, allocations: 51.72 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002017/0.4219, allocations: 131.3 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.4219, allocations: 0 / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4219, allocations: 0 / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.4219, allocations: 11.94 kB / 1.366 GB, free: 11.06 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.000755/0.4226, allocations: 431.1 kB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.4227, allocations: 8.031 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.4227, allocations: 42.73 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.4228, allocations: 24.8 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.4231, allocations: 170.2 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.4231, allocations: 16.38 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.4232, allocations: 12.38 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.4235, allocations: 152 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.4235, allocations: 0 / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4235, allocations: 7.984 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.4235, allocations: 4 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002266/0.4237, allocations: 67.89 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009582/0.4247, allocations: 0.6839 MB / 1.368 GB, free: 9.312 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.4248, allocations: 54.48 kB / 1.368 GB, free: 9.25 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.425, allocations: 32.83 kB / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.425, allocations: 0 / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.4252, allocations: 122.7 kB / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.4252, allocations: 4 kB / 1.368 GB, free: 9.066 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0004836/0.4257, allocations: 169.3 kB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.469e-05/0.4258, allocations: 132.5 kB / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.426, allocations: 195 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.426, allocations: 33.69 kB / 1.369 GB, free: 8.492 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.993e-05/0.4261, allocations: 132.1 kB / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.217e-05/0.4262, allocations: 39.78 kB / 1.369 GB, free: 8.32 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.347e-05/0.4263, allocations: 41.95 kB / 1.369 GB, free: 8.273 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4264, allocations: 326.8 kB / 1.369 GB, free: 7.945 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.4265, allocations: 43.91 kB / 1.369 GB, free: 7.902 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.4267, allocations: 151.3 kB / 1.369 GB, free: 7.703 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.4271, allocations: 202.3 kB / 1.37 GB, free: 7.453 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4271, allocations: 4 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004109/0.4275, allocations: 197.7 kB / 1.37 GB, free: 7.25 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.4275, allocations: 12.06 kB / 1.37 GB, free: 7.238 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.4275, allocations: 4 kB / 1.37 GB, free: 7.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.4276, allocations: 4 kB / 1.37 GB, free: 7.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.4277, allocations: 35.91 kB / 1.37 GB, free: 7.195 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.4277, allocations: 11.94 kB / 1.37 GB, free: 7.184 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.4278, allocations: 31.83 kB / 1.37 GB, free: 7.152 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.4279, allocations: 8 kB / 1.37 GB, free: 7.145 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 0.0001287/0.428, allocations: 141.9 kB / 1.37 GB, free: 6.996 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.428, allocations: 19.89 kB / 1.37 GB, free: 6.977 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/0.4281, allocations: 25.41 kB / 1.37 GB, free: 6.949 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4281, allocations: 0 / 1.37 GB, free: 6.949 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4281, allocations: 4 kB / 1.37 GB, free: 6.945 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4281, allocations: 4.234 kB / 1.37 GB, free: 6.941 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008052/0.4289, allocations: 480.7 kB / 1.37 GB, free: 6.422 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4289, allocations: 4 kB / 1.37 GB, free: 6.418 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.429, allocations: 23.86 kB / 1.37 GB, free: 6.395 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.429, allocations: 0 / 1.37 GB, free: 6.395 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.429, allocations: 12 kB / 1.37 GB, free: 6.383 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.429, allocations: 3.938 kB / 1.37 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.429, allocations: 0 / 1.37 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.4296, allocations: 364.2 kB / 1.371 GB, free: 6 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/0.4296, allocations: 23.8 kB / 1.371 GB, free: 5.977 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.4296, allocations: 8.031 kB / 1.371 GB, free: 5.969 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.4298, allocations: 15.92 kB / 1.371 GB, free: 5.953 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.4298, allocations: 15.98 kB / 1.371 GB, free: 5.938 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.4298, allocations: 4 kB / 1.371 GB, free: 5.934 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001325/0.43, allocations: 148.2 kB / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.43, allocations: 0 / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000323/0.4303, allocations: 27.98 kB / 1.371 GB, free: 5.762 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.0009337/0.4312, allocations: 0.8928 MB / 1.372 GB, free: 4.836 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003281/0.4316, allocations: 111.8 kB / 1.372 GB, free: 4.727 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4316, allocations: 0 / 1.372 GB, free: 4.727 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.4317, allocations: 49.03 kB / 1.372 GB, free: 4.68 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000558/0.4323, allocations: 72.38 kB / 1.372 GB, free: 4.617 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.4351, allocations: 2.272 MB / 1.374 GB, free: 2.16 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.4352, allocations: 104.1 kB / 1.374 GB, free: 2.035 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.228e-05/0.4353, allocations: 33.64 kB / 1.375 GB, free: 2 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.771e-05/0.4354, allocations: 47.42 kB / 1.375 GB, free: 1.953 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.4354, allocations: 0 / 1.375 GB, free: 1.953 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03641/0.4718, allocations: 4.778 MB / 1.379 GB, free: 13.35 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.93, allocations: 7.641 kB / 1.379 GB, free: 13.34 MB / 1.076 GB " [Timeout remaining time 288] (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: 19.128869119100273]