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.001671/0.001671, allocations: 119 kB / 17.17 MB, free: 5.906 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.001924/0.001924, allocations: 211 kB / 20.13 MB, free: 2.969 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.627/1.627, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.891/2.891, allocations: 476.7 MB / 0.7678 GB, free: 9.305 MB / 0.6075 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.002017/0.002017, allocations: 67.91 kB / 1.113 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.132/1.134, allocations: 169.9 MB / 1.279 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003702/1.137, allocations: 1.839 MB / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001286/1.139, allocations: 0.5878 MB / 1.281 GB, free: 10 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/1.139, allocations: 7.219 kB / 1.281 GB, free: 9.996 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001727/1.139, allocations: 26.38 kB / 1.281 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.784e-05/1.139, allocations: 33.77 kB / 1.281 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/1.139, allocations: 61.44 kB / 1.281 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003149/1.14, allocations: 166.8 kB / 1.282 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/1.14, allocations: 44.11 kB / 1.282 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/1.14, allocations: 55.81 kB / 1.282 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/1.14, allocations: 60.94 kB / 1.282 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.499e-05/1.14, allocations: 9.719 kB / 1.282 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.412e-05/1.14, allocations: 10.41 kB / 1.282 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.757e-05/1.14, allocations: 37.94 kB / 1.282 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/1.14, allocations: 64.19 kB / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003214/1.141, allocations: 130.9 kB / 1.282 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/1.141, allocations: 1.109 kB / 1.282 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.386e-06/1.141, allocations: 0.5 kB / 1.282 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.624e-06/1.141, allocations: 0 / 1.282 GB, free: 9.625 MB / 0.9981 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.001093/1.142, allocations: 473.3 kB / 1.282 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.52e-05/1.142, allocations: 13.69 kB / 1.282 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.673e-05/1.142, allocations: 2.719 kB / 1.282 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.642e-05/1.142, allocations: 45.23 kB / 1.283 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.683e-05/1.142, allocations: 26.7 kB / 1.283 GB, free: 9.133 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004762/1.142, allocations: 241.8 kB / 1.283 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/1.142, allocations: 5.859 kB / 1.283 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/1.142, allocations: 15.66 kB / 1.283 GB, free: 8.891 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003934/1.143, allocations: 156.1 kB / 1.283 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/1.143, allocations: 0 / 1.283 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/1.143, allocations: 6.594 kB / 1.283 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/1.143, allocations: 3.688 kB / 1.283 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/1.143, allocations: 71.39 kB / 1.283 GB, free: 8.758 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/1.144, allocations: 0.7379 MB / 1.284 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/1.145, allocations: 46.55 kB / 1.284 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/1.145, allocations: 34.39 kB / 1.284 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/1.145, allocations: 5.656 kB / 1.284 GB, free: 8.035 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003211/1.145, allocations: 127.1 kB / 1.284 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/1.145, allocations: 0 / 1.284 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0005853/1.146, allocations: 160.9 kB / 1.284 GB, free: 7.867 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/1.146, allocations: 135.6 kB / 1.284 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002382/1.146, allocations: 204.1 kB / 1.284 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/1.146, allocations: 27.08 kB / 1.284 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/1.146, allocations: 134.5 kB / 1.285 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/1.146, allocations: 42.98 kB / 1.285 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/1.146, allocations: 40.67 kB / 1.285 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001717/1.146, allocations: 328.4 kB / 1.285 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/1.147, allocations: 37.67 kB / 1.285 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/1.147, allocations: 152.8 kB / 1.285 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/1.147, allocations: 207.1 kB / 1.285 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/1.147, allocations: 0 / 1.285 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004225/1.148, allocations: 209.8 kB / 1.286 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/1.148, allocations: 10.5 kB / 1.286 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/1.148, allocations: 4.531 kB / 1.286 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/1.148, allocations: 8.547 kB / 1.286 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/1.148, allocations: 37.5 kB / 1.286 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/1.148, allocations: 6.281 kB / 1.286 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/1.148, allocations: 24.05 kB / 1.286 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/1.148, allocations: 13.66 kB / 1.286 GB, free: 6.555 MB / 0.9981 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.0001442/1.148, allocations: 138.6 kB / 1.286 GB, free: 6.422 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/1.148, allocations: 17.39 kB / 1.286 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.064e-05/1.148, allocations: 22.06 kB / 1.286 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/1.148, allocations: 2.25 kB / 1.286 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/1.148, allocations: 0.875 kB / 1.286 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/1.148, allocations: 1.828 kB / 1.286 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009763/1.149, allocations: 0.5138 MB / 1.286 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/1.149, allocations: 1.5 kB / 1.286 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/1.149, allocations: 20.23 kB / 1.286 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/1.149, allocations: 1.031 kB / 1.286 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/1.149, allocations: 7.344 kB / 1.286 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/1.149, allocations: 5.828 kB / 1.286 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.149, allocations: 1.344 kB / 1.286 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/1.15, allocations: 361.1 kB / 1.287 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/1.15, allocations: 95.05 kB / 1.287 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/1.15, allocations: 7.344 kB / 1.287 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/1.15, allocations: 19.39 kB / 1.287 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/1.15, allocations: 14.41 kB / 1.287 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/1.15, allocations: 5.672 kB / 1.287 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001552/1.151, allocations: 136.8 kB / 1.287 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/1.151, allocations: 0 / 1.287 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003422/1.151, allocations: 26.62 kB / 1.287 GB, free: 5.461 MB / 0.9981 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.001023/1.152, allocations: 0.9051 MB / 1.288 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003631/1.152, allocations: 114.6 kB / 1.288 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/1.152, allocations: 1.156 kB / 1.288 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/1.153, allocations: 54.61 kB / 1.288 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006048/1.153, allocations: 58.69 kB / 1.288 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003322/1.156, allocations: 2.284 MB / 1.29 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/1.157, allocations: 0.7251 MB / 1.291 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.858e-05/1.157, allocations: 16.66 kB / 1.291 GB, free: 2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.413e-05/1.157, allocations: 48.34 kB / 1.291 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of SimCode: time 3.91e-07/1.157, allocations: 1.156 kB / 1.291 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/1.182, allocations: 4.097 MB / 1.295 GB, free: 1.367 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.683/9.865, allocations: 8.109 kB / 1.295 GB, free: 1.363 MB / 0.9981 GB " [Timeout remaining time 290] (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: 16.404644350986928]