Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.0007048/0.0007048, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007223/0.0007223, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8551/0.8551, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.001432/0.001432, allocations: 248.7 kB / 259.4 MB, free: 13 MB / 250.7 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 0.6486/0.6486, allocations: 138.4 MB / 454.3 MB, free: 30.11 MB / 410.7 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.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.6463 GB, free: 1.902 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.087e-05/2.228e-05, allocations: 9.312 kB / 0.6463 GB, free: 1.895 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.00184/0.001862, allocations: 1.552 MB / 0.6478 GB, free: 336 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0002565/0.002119, allocations: 120.5 kB / 0.6479 GB, free: 212 kB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.775e-05/0.002146, allocations: 0 / 0.6479 GB, free: 212 kB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.467e-05/0.002171, allocations: 7.922 kB / 0.6479 GB, free: 204 kB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 3.208e-05/0.002203, allocations: 4 kB / 0.6479 GB, free: 200 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.002413, allocations: 31.84 kB / 0.648 GB, free: 168 kB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 8.348e-05/0.002496, allocations: 27.92 kB / 0.648 GB, free: 140 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 8.373e-05/0.00258, allocations: 4 kB / 0.648 GB, free: 136 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/0.002625, allocations: 19.92 kB / 0.648 GB, free: 116 kB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 4.008e-05/0.002665, allocations: 15.97 kB / 0.648 GB, free: 100 kB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.002677, allocations: 0 / 0.648 GB, free: 100 kB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 5.392e-05/0.002731, allocations: 15.98 kB / 0.648 GB, free: 84 kB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.00274, allocations: 4 kB / 0.648 GB, free: 80 kB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 1.739e-05/0.002758, allocations: 15.92 kB / 0.6481 GB, free: 64 kB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 9.605e-05/0.002854, allocations: 31.95 kB / 0.6481 GB, free: 32 kB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.002856, allocations: 4 kB / 0.6481 GB, free: 28 kB / 0.5573 GB Notification: Performance of FrontEnd: time 1.002e-06/0.002857, allocations: 0 / 0.6481 GB, free: 28 kB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.002861, allocations: 0 / 0.6481 GB, free: 28 kB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.213/0.2158, allocations: 267 kB / 0.6484 GB, free: 57.23 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2159, allocations: 11.97 kB / 0.6484 GB, free: 57.23 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.509e-05/0.2159, allocations: 35.72 kB / 0.6484 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.2159, allocations: 2.812 kB / 0.6484 GB, free: 57.2 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.506e-05/0.216, allocations: 107.6 kB / 0.6485 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.216, allocations: 1.5 kB / 0.6485 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.757e-06/0.216, allocations: 4.156 kB / 0.6485 GB, free: 57.07 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.2161, allocations: 57.06 kB / 0.6486 GB, free: 57.04 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.2161, allocations: 0.8438 kB / 0.6486 GB, free: 57.04 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.2161, allocations: 2.406 kB / 0.6486 GB, free: 57.04 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.2162, allocations: 4.875 kB / 0.6486 GB, free: 57.04 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.2163, allocations: 42.33 kB / 0.6486 GB, free: 57.04 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002957/0.2166, allocations: 232.9 kB / 0.6488 GB, free: 56.8 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.2168, allocations: 60.16 kB / 0.6489 GB, free: 56.78 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.689e-05/0.2168, allocations: 25.09 kB / 0.6489 GB, free: 56.77 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 8.549e-05/0.2169, allocations: 13.7 kB / 0.6489 GB, free: 56.77 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.2169, allocations: 31.92 kB / 0.649 GB, free: 56.73 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.2169, allocations: 2.25 kB / 0.649 GB, free: 56.73 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0002543/0.2172, allocations: 91.84 kB / 0.649 GB, free: 56.7 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.237e-05/0.2172, allocations: 56.84 kB / 0.6491 GB, free: 56.63 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.237e-05/0.2173, allocations: 102 kB / 0.6492 GB, free: 56.54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.562e-06/0.2173, allocations: 27.19 kB / 0.6492 GB, free: 56.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 2.841e-05/0.2173, allocations: 87.88 kB / 0.6493 GB, free: 56.42 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.2173, allocations: 8.109 kB / 0.6493 GB, free: 56.42 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-05/0.2173, allocations: 19.5 kB / 0.6493 GB, free: 56.4 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 2.888e-05/0.2174, allocations: 313.5 kB / 0.6496 GB, free: 56.09 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.937e-05/0.2174, allocations: 21.78 kB / 0.6497 GB, free: 56.09 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.558e-05/0.2175, allocations: 23.59 kB / 0.6497 GB, free: 56.09 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.523e-05/0.2176, allocations: 45.55 kB / 0.6497 GB, free: 56.08 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2176, allocations: 1.656 kB / 0.6497 GB, free: 56.08 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001224/0.2177, allocations: 82.89 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2177, allocations: 6.344 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2177, allocations: 2.094 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.2177, allocations: 0 / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.17e-05/0.2178, allocations: 12.7 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.2178, allocations: 1.031 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.872e-05/0.2178, allocations: 8.062 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.2178, allocations: 2.156 kB / 0.6498 GB, free: 56.04 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 4.462e-05/0.2179, allocations: 114.3 kB / 0.6499 GB, free: 55.93 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.352e-05/0.2179, allocations: 6.672 kB / 0.6499 GB, free: 55.93 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.218, allocations: 81.77 kB / 0.65 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.218, allocations: 2.156 kB / 0.65 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.218, allocations: 0 / 0.65 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.218, allocations: 3.391 kB / 0.65 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.911e-05/0.2181, allocations: 129.6 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2181, allocations: 0.8125 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.714e-05/0.2182, allocations: 16.69 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2182, allocations: 3.406 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-06/0.2182, allocations: 1.562 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2182, allocations: 0.6094 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2182, allocations: 0.9688 kB / 0.6502 GB, free: 55.73 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001364/0.2183, allocations: 178.2 kB / 0.6503 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.554e-06/0.2183, allocations: 8.297 kB / 0.6504 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.2183, allocations: 0.9375 kB / 0.6504 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.007e-05/0.2184, allocations: 8.609 kB / 0.6504 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.2184, allocations: 7.953 kB / 0.6504 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.2184, allocations: 1.438 kB / 0.6504 GB, free: 55.59 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 1.7e-05/0.2184, allocations: 81.83 kB / 0.6505 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2184, allocations: 0 / 0.6505 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001517/0.2186, allocations: 13.88 kB / 0.6505 GB, free: 55.51 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0002967/0.2189, allocations: 0.7122 MB / 0.6512 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001561/0.2191, allocations: 46.09 kB / 0.6512 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2191, allocations: 1.094 kB / 0.6512 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 5.304e-05/0.2191, allocations: 28.78 kB / 0.6512 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.2194, allocations: 4.141 kB / 0.6512 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.2197, allocations: 139.3 kB / 0.6514 GB, free: 54.71 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.772e-05/0.2198, allocations: 70.55 kB / 0.6514 GB, free: 54.64 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 2.572e-05/0.2198, allocations: 4.688 kB / 0.6514 GB, free: 54.64 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.538e-05/0.2198, allocations: 15.81 kB / 0.6515 GB, free: 54.63 MB / 0.5573 GB Notification: Performance of SimCode: time 5.71e-07/0.2198, allocations: 0.875 kB / 0.6515 GB, free: 54.63 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01372/0.2335, allocations: 2.278 MB / 0.6537 GB, free: 53.83 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.418/6.651, allocations: 8.75 kB / 0.6537 GB, free: 53.83 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.187389371916652] Failed to read output from testmodel.py, exit status != 0: 6.726757963187993 6.735209554 6.730581132 Calling exit ...