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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 107.6 kB / 16.41 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002206/0.002206, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 245.1 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.82/2.82, allocations: 469.8 MB / 0.7491 GB, free: 3.152 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 79.88 kB / 1.073 GB, free: 104 kB / 0.8731 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8709/0.8729, allocations: 159.1 MB / 1.229 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003172/0.8761, allocations: 1.834 MB / 1.23 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.8771, allocations: 0.5309 MB / 1.231 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.8773, allocations: 7.938 kB / 1.231 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.8774, allocations: 23.73 kB / 1.231 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.942e-05/0.8775, allocations: 27.73 kB / 1.231 GB, free: 2.32 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.8778, allocations: 67.84 kB / 1.231 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000245/0.878, allocations: 175.4 kB / 1.231 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.8782, allocations: 55.42 kB / 1.231 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.916e-05/0.8783, allocations: 59.7 kB / 1.231 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.34e-05/0.8784, allocations: 55.64 kB / 1.231 GB, free: 1.918 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.8784, allocations: 12 kB / 1.231 GB, free: 1.906 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.09e-05/0.8784, allocations: 8 kB / 1.231 GB, free: 1.898 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.317e-05/0.8785, allocations: 23.92 kB / 1.231 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.603e-05/0.8786, allocations: 71.53 kB / 1.232 GB, free: 1.805 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.8788, allocations: 139.3 kB / 1.232 GB, free: 1.668 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.8788, allocations: 0 / 1.232 GB, free: 1.668 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8788, allocations: 0 / 1.232 GB, free: 1.668 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.8788, allocations: 0 / 1.232 GB, free: 1.668 MB / 0.9356 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.0007535/0.8796, allocations: 482.6 kB / 1.232 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.8796, allocations: 8.031 kB / 1.232 GB, free: 1.141 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.265e-05/0.8797, allocations: 42.73 kB / 1.232 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.8797, allocations: 16.84 kB / 1.232 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.8801, allocations: 240.5 kB / 1.232 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.8801, allocations: 12.38 kB / 1.232 GB, free: 0.7891 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.8801, allocations: 16.33 kB / 1.232 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.8804, allocations: 148.5 kB / 1.233 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.8804, allocations: 3.938 kB / 1.233 GB, free: 0.6055 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.8805, allocations: 7.984 kB / 1.233 GB, free: 0.5977 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.8805, allocations: 8 kB / 1.233 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.8807, allocations: 63.89 kB / 1.233 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009806/0.8817, allocations: 0.7395 MB / 1.233 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.8819, allocations: 46.55 kB / 1.233 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.882, allocations: 36.83 kB / 1.233 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.882, allocations: 0 / 1.233 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.8823, allocations: 134.6 kB / 1.234 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.8823, allocations: 0 / 1.234 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0005007/0.8828, allocations: 169.6 kB / 1.234 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/0.8829, allocations: 128.5 kB / 1.234 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.8831, allocations: 202.9 kB / 1.234 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.8832, allocations: 33.7 kB / 1.234 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.8833, allocations: 132.1 kB / 1.234 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.8833, allocations: 35.73 kB / 1.234 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.85e-05/0.8834, allocations: 45.66 kB / 1.234 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.8836, allocations: 334.8 kB / 1.235 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.8837, allocations: 35.97 kB / 1.235 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.8839, allocations: 146.5 kB / 1.235 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003513/0.8843, allocations: 198.4 kB / 1.235 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.8843, allocations: 4.25 kB / 1.235 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000448/0.8847, allocations: 209.1 kB / 1.235 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.8848, allocations: 8 kB / 1.235 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.8848, allocations: 8 kB / 1.235 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.8848, allocations: 4 kB / 1.235 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.8849, allocations: 31.92 kB / 1.235 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.885, allocations: 8.484 kB / 1.235 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.8851, allocations: 35.81 kB / 1.235 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.8851, allocations: 8 kB / 1.235 GB, free: 13.54 MB / 0.9512 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.0001291/0.8853, allocations: 133.8 kB / 1.235 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.8853, allocations: 19.86 kB / 1.235 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.8854, allocations: 25.33 kB / 1.235 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.8854, allocations: 4 kB / 1.235 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.8854, allocations: 0 / 1.235 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.8854, allocations: 4 kB / 1.235 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008095/0.8862, allocations: 0.5094 MB / 1.236 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.8862, allocations: 0 / 1.236 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.8864, allocations: 15.98 kB / 1.236 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.896e-06/0.8864, allocations: 7.938 kB / 1.236 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.8864, allocations: 4 kB / 1.236 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.8864, allocations: 11.94 kB / 1.236 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.8864, allocations: 3.938 kB / 1.236 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005794/0.887, allocations: 352.3 kB / 1.236 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.8871, allocations: 97.05 kB / 1.236 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.8871, allocations: 8 kB / 1.236 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.8873, allocations: 16.3 kB / 1.236 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.8874, allocations: 15.92 kB / 1.236 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.8874, allocations: 4 kB / 1.236 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001228/0.8875, allocations: 144.4 kB / 1.237 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8875, allocations: 0 / 1.237 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000327/0.8878, allocations: 27.95 kB / 1.237 GB, free: 12.04 MB / 0.9512 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.0008912/0.8887, allocations: 0.9084 MB / 1.238 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000331/0.8891, allocations: 111.8 kB / 1.238 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.8891, allocations: 1 kB / 1.238 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.8893, allocations: 52.03 kB / 1.238 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005658/0.8898, allocations: 75.89 kB / 1.238 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.8926, allocations: 2.276 MB / 1.24 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.893, allocations: 0.7242 MB / 1.241 GB, free: 7.664 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.919e-05/0.8931, allocations: 17.53 kB / 1.241 GB, free: 7.648 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.641e-05/0.8932, allocations: 51.42 kB / 1.241 GB, free: 7.598 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.8932, allocations: 4 kB / 1.241 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.9243, allocations: 4.028 MB / 1.245 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.286/9.211, allocations: 7.609 kB / 1.245 GB, free: 3.672 MB / 0.9512 GB " [Timeout remaining time 291] (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_2/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: 15.327101950068027]