Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.001663/0.001663, allocations: 112 kB / 16.46 MB, free: 6.453 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.002163/0.002163, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.464/1.464, allocations: 230.6 MB / 252.8 MB, free: 8.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002436/0.002436, allocations: 287.9 kB / 309.1 MB, free: 3.98 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.232/1.232, allocations: 180.9 MB / 0.5333 GB, free: 13.85 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 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",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.002823/0.002823, allocations: 107.8 kB / 0.7343 GB, free: 28.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2232, allocations: 95.35 MB / 0.8274 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.003283/0.2265, allocations: 1.559 MB / 0.8289 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0004714/0.227, allocations: 136.5 kB / 0.829 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.012e-05/0.227, allocations: 0 / 0.829 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.993e-05/0.227, allocations: 3.938 kB / 0.829 GB, free: 8.176 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.948e-05/0.2271, allocations: 3.938 kB / 0.829 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.2274, allocations: 31.91 kB / 0.8291 GB, free: 8.141 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.318e-05/0.2275, allocations: 39.91 kB / 0.8291 GB, free: 8.102 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.888e-05/0.2276, allocations: 11.98 kB / 0.8291 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.962e-05/0.2276, allocations: 23.92 kB / 0.8291 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.582e-05/0.2277, allocations: 15.92 kB / 0.8291 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.2277, allocations: 4 kB / 0.8292 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.861e-05/0.2278, allocations: 15.98 kB / 0.8292 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.683e-05/0.2278, allocations: 11.98 kB / 0.8292 GB, free: 8.02 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.2278, allocations: 19.86 kB / 0.8292 GB, free: 8 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.228, allocations: 48.09 kB / 0.8292 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.228, allocations: 0 / 0.8292 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.994e-06/0.228, allocations: 0 / 0.8292 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.228, allocations: 0 / 0.8292 GB, free: 7.953 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005951/0.2286, allocations: 351.4 kB / 0.8296 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.2286, allocations: 12.03 kB / 0.8296 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.946e-05/0.2287, allocations: 34.75 kB / 0.8296 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/0.2287, allocations: 4.938 kB / 0.8296 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.2289, allocations: 172.2 kB / 0.8298 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2289, allocations: 384 / 0.8298 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.2289, allocations: 4.375 kB / 0.8298 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.2291, allocations: 63.89 kB / 0.8299 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2291, allocations: 7.938 kB / 0.8299 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.2292, allocations: 11.98 kB / 0.8299 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2292, allocations: 3.938 kB / 0.8299 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.2294, allocations: 39.95 kB / 0.8299 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005004/0.2299, allocations: 288.7 kB / 0.8302 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003514/0.2302, allocations: 54.55 kB / 0.8302 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.2303, allocations: 28.89 kB / 0.8303 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003927/0.2307, allocations: 401.5 kB / 0.8307 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.2308, allocations: 34.56 kB / 0.8307 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.2308, allocations: 0 / 0.8307 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004367/0.2312, allocations: 97.56 kB / 0.8308 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.2313, allocations: 51.41 kB / 0.8308 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.2314, allocations: 113.8 kB / 0.8309 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.2314, allocations: 25.7 kB / 0.831 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.2315, allocations: 84.22 kB / 0.831 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.2315, allocations: 11.94 kB / 0.8311 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.053e-05/0.2315, allocations: 17.7 kB / 0.8311 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001948/0.2317, allocations: 322.8 kB / 0.8314 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.958e-05/0.2318, allocations: 15.98 kB / 0.8314 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.541e-05/0.2319, allocations: 19.97 kB / 0.8314 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.2321, allocations: 52.75 kB / 0.8315 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2321, allocations: 0 / 0.8315 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002382/0.2323, allocations: 81.61 kB / 0.8315 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.2323, allocations: 4 kB / 0.8315 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2324, allocations: 0 / 0.8315 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.2324, allocations: 0 / 0.8315 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.843e-05/0.2325, allocations: 11.98 kB / 0.8316 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.2325, allocations: 0 / 0.8316 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.2325, allocations: 11.92 kB / 0.8316 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/0.2325, allocations: 4 kB / 0.8316 GB, free: 5.238 MB / 0.5762 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 (falFac.y,rea2Int.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 0.000112/0.2327, allocations: 118.4 kB / 0.8317 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.2327, allocations: 4 kB / 0.8317 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.233, allocations: 81.48 kB / 0.8318 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.233, allocations: 0 / 0.8318 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.233, allocations: 0 / 0.8318 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.233, allocations: 4.375 kB / 0.8318 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.2332, allocations: 173.5 kB / 0.8319 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2332, allocations: 4 kB / 0.8319 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.011e-05/0.2333, allocations: 11.98 kB / 0.832 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2333, allocations: 4 kB / 0.832 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.2333, allocations: 3.984 kB / 0.832 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2333, allocations: 0 / 0.832 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2333, allocations: 0 / 0.832 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.2336, allocations: 175.4 kB / 0.8321 GB, free: 4.586 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.895e-05/0.2337, allocations: 81.11 kB / 0.8322 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.2337, allocations: 8 kB / 0.8322 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.397e-05/0.2338, allocations: 7.922 kB / 0.8322 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.2339, allocations: 7.984 kB / 0.8322 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.2339, allocations: 0 / 0.8322 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.754e-05/0.2339, allocations: 87.28 kB / 0.8323 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.2339, allocations: 0 / 0.8323 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002301/0.2342, allocations: 11.95 kB / 0.8323 GB, free: 4.367 MB / 0.5762 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 (rea2Int.y,falFac.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.0007017/0.2349, allocations: 0.7163 MB / 0.833 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002703/0.2351, allocations: 47.89 kB / 0.8331 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.2351, allocations: 0 / 0.8331 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.2352, allocations: 27.98 kB / 0.8331 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.2356, allocations: 1.719 kB / 0.8331 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.2373, allocations: 1.297 MB / 0.8344 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.2376, allocations: 0.6768 MB / 0.835 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.353e-05/0.2376, allocations: 8 kB / 0.835 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/0.2377, allocations: 19.42 kB / 0.835 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of SimCode: time 3.4e-07/0.2377, allocations: 0 / 0.835 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.2643, allocations: 1.707 MB / 0.8367 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/8.101, allocations: 8.688 kB / 0.8367 GB, free: 15.83 MB / 0.5919 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.516859077848494] Failed to read output from testmodel.py, exit status != 0: 8.168023413047194 8.195477168 7.962461635 Calling exit ...