Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001355/0.001355, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.0015/0.0015, allocations: 215.4 kB / 23.03 MB, free: 4.922 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.499/1.499, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.923/2.923, allocations: 476.8 MB / 0.7715 GB, free: 3.91 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_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.001997/0.001997, allocations: 64.42 kB / 1.118 GB, free: 39.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3907, allocations: 169.9 MB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003395/0.3941, allocations: 1.787 MB / 1.286 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3952, allocations: 0.5416 MB / 1.286 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.3954, allocations: 7.875 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.3955, allocations: 27.73 kB / 1.286 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.378e-05/0.3956, allocations: 31.66 kB / 1.286 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.3958, allocations: 71.84 kB / 1.286 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.3961, allocations: 167.5 kB / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.3963, allocations: 45.7 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.519e-05/0.3964, allocations: 51.73 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.3965, allocations: 67.62 kB / 1.287 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.3965, allocations: 12 kB / 1.287 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.841e-05/0.3965, allocations: 8 kB / 1.287 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.3966, allocations: 23.92 kB / 1.287 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.223e-05/0.3967, allocations: 55.66 kB / 1.287 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.397, allocations: 142.8 kB / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.397, allocations: 0 / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.635e-06/0.397, allocations: 0 / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.497e-06/0.397, allocations: 0 / 1.287 GB, free: 7.637 MB / 0.9825 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.001115/0.3981, allocations: 435.1 kB / 1.287 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.754e-05/0.3982, allocations: 12.03 kB / 1.287 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.403e-05/0.3982, allocations: 192 / 1.287 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.08e-05/0.3983, allocations: 46.73 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.974e-05/0.3983, allocations: 24.8 kB / 1.288 GB, free: 7.086 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/0.3988, allocations: 162.8 kB / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.3989, allocations: 12.38 kB / 1.288 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.3989, allocations: 12.38 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.3994, allocations: 149.8 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.3994, allocations: 0 / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.3994, allocations: 7.938 kB / 1.288 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.3994, allocations: 11.94 kB / 1.288 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002603/0.3997, allocations: 67.89 kB / 1.288 GB, free: 6.625 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.4011, allocations: 0.6994 MB / 1.289 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.4013, allocations: 38.56 kB / 1.289 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.4015, allocations: 36.83 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.4015, allocations: 3.938 kB / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.4018, allocations: 122.9 kB / 1.289 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.4018, allocations: 0 / 1.289 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0005982/0.4024, allocations: 173.6 kB / 1.289 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.4026, allocations: 128.5 kB / 1.289 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.4028, allocations: 203 kB / 1.289 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.4029, allocations: 25.7 kB / 1.289 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.403, allocations: 132.1 kB / 1.289 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.084e-05/0.403, allocations: 39.69 kB / 1.289 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.4031, allocations: 37.7 kB / 1.29 GB, free: 4.844 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002064/0.4033, allocations: 326.8 kB / 1.29 GB, free: 4.516 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.4035, allocations: 47.97 kB / 1.29 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.4037, allocations: 153.6 kB / 1.29 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.4041, allocations: 198.4 kB / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4041, allocations: 0 / 1.29 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004457/0.4045, allocations: 205.1 kB / 1.29 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.4046, allocations: 11.98 kB / 1.29 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4046, allocations: 4.5 kB / 1.29 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/0.4046, allocations: 8 kB / 1.29 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.4047, allocations: 35.92 kB / 1.29 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.4048, allocations: 4 kB / 1.29 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.4049, allocations: 27.81 kB / 1.291 GB, free: 3.727 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.4049, allocations: 16 kB / 1.291 GB, free: 3.711 MB / 0.9825 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.0001852/0.4051, allocations: 140.8 kB / 1.291 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.4052, allocations: 15.91 kB / 1.291 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.76e-05/0.4052, allocations: 25.39 kB / 1.291 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.4052, allocations: 0 / 1.291 GB, free: 3.523 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.4052, allocations: 8 kB / 1.291 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4052, allocations: 0 / 1.291 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009042/0.4061, allocations: 484.6 kB / 1.291 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4062, allocations: 4 kB / 1.291 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.4063, allocations: 15.98 kB / 1.291 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.4063, allocations: 0 / 1.291 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.4063, allocations: 4.312 kB / 1.291 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.4063, allocations: 3.938 kB / 1.291 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.4063, allocations: 8 kB / 1.291 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006714/0.407, allocations: 368.4 kB / 1.292 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.407, allocations: 23.95 kB / 1.292 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.4071, allocations: 4 kB / 1.292 GB, free: 2.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.4072, allocations: 19.92 kB / 1.292 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.872e-05/0.4073, allocations: 11.92 kB / 1.292 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.4073, allocations: 7.984 kB / 1.292 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001681/0.4075, allocations: 147.2 kB / 1.292 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.4075, allocations: 0 / 1.292 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003461/0.4078, allocations: 24 kB / 1.292 GB, free: 2.34 MB / 0.9825 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.001242/0.4091, allocations: 0.896 MB / 1.293 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004486/0.4095, allocations: 115.9 kB / 1.293 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.4095, allocations: 4 kB / 1.293 GB, free: 1.297 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.4097, allocations: 43.91 kB / 1.293 GB, free: 1.254 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006879/0.4104, allocations: 68.98 kB / 1.293 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.4136, allocations: 2.267 MB / 1.295 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001179/0.4137, allocations: 112.1 kB / 1.295 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.36e-05/0.4138, allocations: 13.48 kB / 1.295 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.4139, allocations: 59.7 kB / 1.295 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of SimCode: time 4.61e-07/0.4139, allocations: 0 / 1.295 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.445, allocations: 4.426 MB / 1.3 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.02, allocations: 12.75 kB / 1.3 GB, free: 10.3 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.298922140034847]