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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007424/0.007424, allocations: 101 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 193.3 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002496/0.002496, allocations: 289.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9738/0.9738, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002689/0.002689, allocations: 100.3 kB / 0.681 GB, free: 7.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4626/0.4653, allocations: 86.98 MB / 0.7659 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002977/0.4683, allocations: 1.498 MB / 0.7674 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003846/0.4687, allocations: 128.5 kB / 0.7675 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.565e-05/0.4688, allocations: 4 kB / 0.7675 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.288e-05/0.4688, allocations: 4 kB / 0.7675 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.766e-05/0.4689, allocations: 7.922 kB / 0.7675 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.4691, allocations: 15.92 kB / 0.7675 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.737e-05/0.4692, allocations: 35.86 kB / 0.7676 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.965e-05/0.4693, allocations: 7.984 kB / 0.7676 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.436e-05/0.4693, allocations: 12 kB / 0.7676 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.118e-05/0.4694, allocations: 19.91 kB / 0.7676 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.4694, allocations: 4 kB / 0.7676 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.402e-05/0.4695, allocations: 15.92 kB / 0.7676 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.577e-05/0.4695, allocations: 12 kB / 0.7676 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.4695, allocations: 7.938 kB / 0.7676 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.4697, allocations: 39.67 kB / 0.7677 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4697, allocations: 4 kB / 0.7677 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4697, allocations: 0 / 0.7677 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.4697, allocations: 0 / 0.7677 GB, free: 1.977 MB / 0.5294 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.0005918/0.4703, allocations: 344.7 kB / 0.768 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4704, allocations: 8.031 kB / 0.768 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.399e-05/0.4704, allocations: 38.73 kB / 0.7681 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.4705, allocations: 4.938 kB / 0.7681 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.4706, allocations: 172.3 kB / 0.7682 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.4707, allocations: 384 / 0.7682 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.4707, allocations: 4.375 kB / 0.7682 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.4709, allocations: 54.17 kB / 0.7683 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.4709, allocations: 11.92 kB / 0.7683 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.4709, allocations: 4 kB / 0.7683 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.471, allocations: 0 / 0.7683 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.4712, allocations: 39.95 kB / 0.7683 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004375/0.4716, allocations: 260.9 kB / 0.7686 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.472, allocations: 62.53 kB / 0.7686 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.568e-05/0.4721, allocations: 20.84 kB / 0.7687 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.4722, allocations: 93.08 kB / 0.7688 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.4722, allocations: 30.56 kB / 0.7688 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.4723, allocations: 4 kB / 0.7688 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004041/0.4727, allocations: 89.64 kB / 0.7689 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.4727, allocations: 55.39 kB / 0.7689 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.566e-05/0.4728, allocations: 109.8 kB / 0.769 GB, free: 392 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.4728, allocations: 25.7 kB / 0.7691 GB, free: 360 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.4729, allocations: 80.14 kB / 0.7691 GB, free: 276 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.4729, allocations: 11.95 kB / 0.7691 GB, free: 264 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.635e-05/0.473, allocations: 17.7 kB / 0.7692 GB, free: 240 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4732, allocations: 310.8 kB / 0.7695 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.346e-05/0.4733, allocations: 23.97 kB / 0.7695 GB, free: 15.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.35e-05/0.4733, allocations: 19.98 kB / 0.7695 GB, free: 15.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.4735, allocations: 52.75 kB / 0.7695 GB, free: 15.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4735, allocations: 0 / 0.7695 GB, free: 15.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000211/0.4738, allocations: 65.66 kB / 0.7696 GB, free: 15.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.4738, allocations: 8 kB / 0.7696 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4738, allocations: 3.938 kB / 0.7696 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.4738, allocations: 0 / 0.7696 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.059e-05/0.4739, allocations: 19.92 kB / 0.7696 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.4739, allocations: 3.938 kB / 0.7696 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.011e-05/0.474, allocations: 11.98 kB / 0.7697 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.474, allocations: 0 / 0.7697 GB, free: 15.71 MB / 0.545 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 8.724e-05/0.4741, allocations: 113.8 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.4741, allocations: 3.953 kB / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.4744, allocations: 85.14 kB / 0.7698 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.4744, allocations: 8 kB / 0.7699 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4744, allocations: 0 / 0.7699 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4744, allocations: 0 / 0.7699 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.4746, allocations: 165.6 kB / 0.77 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.504e-05/0.4747, allocations: 4 kB / 0.77 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.931e-05/0.4747, allocations: 11.92 kB / 0.77 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.4747, allocations: 4 kB / 0.77 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.4748, allocations: 0 / 0.77 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.4748, allocations: 0 / 0.77 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4748, allocations: 4 kB / 0.77 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.475, allocations: 172 kB / 0.7702 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.562e-05/0.4751, allocations: 81.09 kB / 0.7703 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.4751, allocations: 7.984 kB / 0.7703 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.241e-05/0.4752, allocations: 7.984 kB / 0.7703 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.4753, allocations: 4 kB / 0.7703 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.4753, allocations: 7.984 kB / 0.7703 GB, free: 14.94 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.747e-05/0.4754, allocations: 83.28 kB / 0.7704 GB, free: 14.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4754, allocations: 0 / 0.7704 GB, free: 14.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002223/0.4756, allocations: 8 kB / 0.7704 GB, free: 14.85 MB / 0.545 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.000646/0.4762, allocations: 0.7162 MB / 0.7711 GB, free: 14.11 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002547/0.4765, allocations: 39.95 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4765, allocations: 0 / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.4766, allocations: 31.91 kB / 0.7712 GB, free: 14.04 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.4769, allocations: 6.234 kB / 0.7712 GB, free: 14.03 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004511/0.4774, allocations: 148.9 kB / 0.7713 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.4777, allocations: 0.6768 MB / 0.772 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.269e-05/0.4778, allocations: 7.984 kB / 0.772 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.4778, allocations: 15.44 kB / 0.772 GB, free: 13.12 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.4778, allocations: 0 / 0.772 GB, free: 13.12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02234/0.5002, allocations: 1.597 MB / 0.7736 GB, free: 11.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.272, allocations: 9.609 kB / 0.7736 GB, free: 11.61 MB / 0.545 GB (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)