Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001609/0.001609, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002132/0.002132, allocations: 213.2 kB / 22.25 MB, free: 5.242 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002548/0.002548, allocations: 289.7 kB / 312.7 MB, free: 2.594 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.281/1.281, allocations: 180.6 MB / 0.5369 GB, free: 14.49 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.003028/0.003028, allocations: 97.25 kB / 0.7395 GB, free: 28.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1851, allocations: 95.38 MB / 0.8326 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00328/0.1883, allocations: 1.819 MB / 0.8344 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1896, allocations: 0.5416 MB / 0.835 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1897, allocations: 7.938 kB / 0.835 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.1899, allocations: 23.73 kB / 0.835 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 9.215e-05/0.19, allocations: 35.66 kB / 0.835 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.1902, allocations: 59.92 kB / 0.8351 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002827/0.1905, allocations: 171.4 kB / 0.8352 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.1907, allocations: 42.03 kB / 0.8353 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.1908, allocations: 51.8 kB / 0.8353 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.961e-05/0.1909, allocations: 55.7 kB / 0.8354 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.08e-05/0.1909, allocations: 11.94 kB / 0.8354 GB, free: 5.484 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 2.556e-05/0.1909, allocations: 12 kB / 0.8354 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.191, allocations: 35.83 kB / 0.8354 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.065e-05/0.1911, allocations: 51.67 kB / 0.8355 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.1913, allocations: 127.3 kB / 0.8356 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.1913, allocations: 7.938 kB / 0.8356 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.903e-06/0.1913, allocations: 0 / 0.8356 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.1913, allocations: 0 / 0.8356 GB, free: 5.254 MB / 0.5762 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.0008311/0.1921, allocations: 427.2 kB / 0.836 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1922, allocations: 9.344 kB / 0.836 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.614e-05/0.1922, allocations: 42.73 kB / 0.8361 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.738e-05/0.1923, allocations: 24.73 kB / 0.8361 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.1926, allocations: 174.2 kB / 0.8363 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.1926, allocations: 8.375 kB / 0.8363 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.1927, allocations: 12.38 kB / 0.8363 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.193, allocations: 159 kB / 0.8364 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.193, allocations: 4 kB / 0.8364 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.193, allocations: 4 kB / 0.8364 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.193, allocations: 4 kB / 0.8364 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002177/0.1932, allocations: 63.89 kB / 0.8365 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009583/0.1942, allocations: 0.7034 MB / 0.8372 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.1944, allocations: 42.56 kB / 0.8372 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.1945, allocations: 32.83 kB / 0.8373 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.1945, allocations: 4 kB / 0.8373 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.1947, allocations: 118.7 kB / 0.8374 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.1947, allocations: 4 kB / 0.8374 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0004908/0.1952, allocations: 173.5 kB / 0.8376 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.384e-05/0.1953, allocations: 136.5 kB / 0.8377 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.1955, allocations: 200 kB / 0.8379 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.1955, allocations: 29.7 kB / 0.8379 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1957, allocations: 127.9 kB / 0.838 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.173e-05/0.1957, allocations: 39.92 kB / 0.8381 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.465e-05/0.1958, allocations: 41.7 kB / 0.8381 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1959, allocations: 326.8 kB / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.196, allocations: 44.03 kB / 0.8385 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.1962, allocations: 145 kB / 0.8386 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/0.1965, allocations: 198.3 kB / 0.8388 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1966, allocations: 4 kB / 0.8388 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003984/0.197, allocations: 213.1 kB / 0.839 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.197, allocations: 8 kB / 0.839 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.197, allocations: 4.5 kB / 0.839 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.197, allocations: 8 kB / 0.839 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.1971, allocations: 31.92 kB / 0.839 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.1971, allocations: 4 kB / 0.839 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.1973, allocations: 27.88 kB / 0.8391 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1973, allocations: 8 kB / 0.8391 GB, free: 1.344 MB / 0.5762 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.0001289/0.1974, allocations: 151.2 kB / 0.8392 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.1974, allocations: 15.91 kB / 0.8392 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.72e-05/0.1975, allocations: 21.39 kB / 0.8393 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.1975, allocations: 4 kB / 0.8393 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1975, allocations: 4 kB / 0.8393 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.1975, allocations: 4 kB / 0.8393 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007493/0.1983, allocations: 480.9 kB / 0.8397 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1983, allocations: 3.938 kB / 0.8397 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1984, allocations: 23.92 kB / 0.8398 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1984, allocations: 4 kB / 0.8398 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1984, allocations: 0 / 0.8398 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.1984, allocations: 7.938 kB / 0.8398 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1984, allocations: 4 kB / 0.8398 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005067/0.1989, allocations: 356.6 kB / 0.8401 GB, free: 212 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.199, allocations: 27.83 kB / 0.8401 GB, free: 184 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.199, allocations: 4 kB / 0.8401 GB, free: 180 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.1991, allocations: 16.02 kB / 0.8402 GB, free: 164 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.1992, allocations: 15.97 kB / 0.8402 GB, free: 148 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.1992, allocations: 7.984 kB / 0.8402 GB, free: 140 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00013/0.1993, allocations: 147.4 kB / 0.8403 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.1993, allocations: 0 / 0.8403 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003241/0.1997, allocations: 28 kB / 0.8403 GB, free: 15.96 MB / 0.5919 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.0008196/0.2005, allocations: 0.8931 MB / 0.8412 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003199/0.2008, allocations: 119.8 kB / 0.8413 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2008, allocations: 0 / 0.8413 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.201, allocations: 43.92 kB / 0.8414 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.2015, allocations: 69.44 kB / 0.8414 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.2043, allocations: 2.278 MB / 0.8437 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.2044, allocations: 112.1 kB / 0.8438 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.363e-05/0.2045, allocations: 17.48 kB / 0.8438 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.106e-05/0.2046, allocations: 51.42 kB / 0.8438 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of SimCode: time 3.11e-07/0.2046, allocations: 0 / 0.8438 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.2381, allocations: 4.791 MB / 0.8485 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.51, allocations: 8.969 kB / 0.8485 GB, free: 7.551 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.969184483401477] Failed to read output from testmodel.py, exit status != 0: 11.61246116925031 11.628988224 11.4345366 Calling exit ...