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.001305/0.001305, 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.001492/0.001492, allocations: 211.5 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.45/1.45, allocations: 230.6 MB / 256 MB, free: 7.785 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.002587/0.002587, allocations: 297.7 kB / 312.7 MB, free: 2.598 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.246/1.246, allocations: 180.6 MB / 0.5369 GB, free: 14.55 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.003065/0.003065, allocations: 107.7 kB / 0.7395 GB, free: 28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1947, allocations: 95.37 MB / 0.8326 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003063/0.1978, allocations: 1.81 MB / 0.8344 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1989, allocations: 0.5416 MB / 0.8349 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.1991, allocations: 7.938 kB / 0.835 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.1993, allocations: 23.73 kB / 0.835 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 9.985e-05/0.1994, allocations: 31.72 kB / 0.835 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002782/0.1997, allocations: 71.84 kB / 0.8351 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.1999, allocations: 171.4 kB / 0.8352 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.2001, allocations: 38.05 kB / 0.8353 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 9.721e-05/0.2002, allocations: 55.78 kB / 0.8353 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.649e-05/0.2003, allocations: 47.7 kB / 0.8354 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.719e-05/0.2003, allocations: 8 kB / 0.8354 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 2.214e-05/0.2003, allocations: 16 kB / 0.8354 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.663e-05/0.2004, allocations: 31.8 kB / 0.8354 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.039e-05/0.2005, allocations: 59.66 kB / 0.8355 GB, free: 5.391 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.2007, allocations: 131.3 kB / 0.8356 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2007, allocations: 0 / 0.8356 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.474e-06/0.2007, allocations: 0 / 0.8356 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.2007, allocations: 4 kB / 0.8356 GB, free: 5.258 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.0008428/0.2015, allocations: 427.1 kB / 0.836 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.2016, allocations: 13.34 kB / 0.836 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.274e-05/0.2017, allocations: 46.73 kB / 0.8361 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.389e-05/0.2017, allocations: 24.8 kB / 0.8361 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.2021, allocations: 166.2 kB / 0.8363 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.2021, allocations: 12.38 kB / 0.8363 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.2021, allocations: 12.38 kB / 0.8363 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.2024, allocations: 155 kB / 0.8364 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2024, allocations: 0 / 0.8364 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2024, allocations: 4 kB / 0.8364 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.2025, allocations: 4 kB / 0.8364 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.2027, allocations: 75.88 kB / 0.8365 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009649/0.2036, allocations: 0.6839 MB / 0.8372 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.2038, allocations: 50.5 kB / 0.8372 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.2039, allocations: 36.83 kB / 0.8373 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.2039, allocations: 0 / 0.8373 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.2042, allocations: 130.8 kB / 0.8374 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.2042, allocations: 0 / 0.8374 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0005043/0.2047, allocations: 169.6 kB / 0.8375 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.2048, allocations: 136.5 kB / 0.8377 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.2051, allocations: 204 kB / 0.8379 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.2051, allocations: 29.7 kB / 0.8379 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2052, allocations: 131.9 kB / 0.838 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.2052, allocations: 35.78 kB / 0.8381 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.406e-05/0.2053, allocations: 41.7 kB / 0.8381 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.2055, allocations: 326.8 kB / 0.8384 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.2056, allocations: 39.97 kB / 0.8385 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.2058, allocations: 145 kB / 0.8386 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.2062, allocations: 206.3 kB / 0.8388 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2062, allocations: 0 / 0.8388 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004188/0.2066, allocations: 209.1 kB / 0.839 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.2067, allocations: 11.98 kB / 0.839 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2067, allocations: 4 kB / 0.839 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2067, allocations: 4 kB / 0.839 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.2068, allocations: 32.17 kB / 0.839 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/0.2068, allocations: 8.5 kB / 0.839 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.207, allocations: 35.88 kB / 0.8391 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.207, allocations: 8 kB / 0.8391 GB, free: 1.336 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.0001424/0.2071, allocations: 146.8 kB / 0.8392 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.2072, allocations: 19.91 kB / 0.8392 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.168e-05/0.2072, allocations: 17.41 kB / 0.8393 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2072, allocations: 3.984 kB / 0.8393 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.2072, allocations: 7.938 kB / 0.8393 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2072, allocations: 0 / 0.8393 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007758/0.208, allocations: 480.7 kB / 0.8397 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.208, allocations: 4 kB / 0.8397 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.2081, allocations: 23.86 kB / 0.8398 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2081, allocations: 0 / 0.8398 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2082, allocations: 8 kB / 0.8398 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2082, allocations: 3.938 kB / 0.8398 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2082, allocations: 288 / 0.8398 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.2087, allocations: 364.3 kB / 0.8401 GB, free: 204 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.914e-05/0.2087, allocations: 27.83 kB / 0.8401 GB, free: 176 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/0.2088, allocations: 4 kB / 0.8401 GB, free: 172 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.2089, allocations: 15.92 kB / 0.8402 GB, free: 156 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.209, allocations: 11.98 kB / 0.8402 GB, free: 144 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.209, allocations: 7.984 kB / 0.8402 GB, free: 136 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001431/0.2091, allocations: 143.4 kB / 0.8403 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.2091, allocations: 0 / 0.8403 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003235/0.2095, allocations: 24 kB / 0.8403 GB, free: 15.97 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.0008508/0.2103, allocations: 0.8976 MB / 0.8412 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000322/0.2106, allocations: 116.7 kB / 0.8413 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.2106, allocations: 4 kB / 0.8413 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.2108, allocations: 43.91 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.0005647/0.2113, allocations: 74.06 kB / 0.8414 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.2142, allocations: 2.274 MB / 0.8437 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.2143, allocations: 112.1 kB / 0.8438 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.653e-05/0.2144, 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 8.878e-05/0.2145, allocations: 47.42 kB / 0.8438 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of SimCode: time 7.02e-07/0.2145, allocations: 4 kB / 0.8438 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03244/0.2469, allocations: 4.796 MB / 0.8485 GB, free: 7.543 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.33, allocations: 12.64 kB / 0.8485 GB, free: 7.535 MB / 0.5919 GB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.58416326297447] Failed to read output from testmodel.py, exit status != 0: 11.431583668105304 11.448325498 11.244499345 Calling exit ...