Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.005003/0.005003, allocations: 94.8 kB / 15.73 MB, free: 6.047 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.001259/0.001259, allocations: 206.4 kB / 16.68 MB, free: 5.973 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002454/0.002454, allocations: 286.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 178.6 MB / 0.5074 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002665/0.002666, allocations: 102.2 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5418/0.5445, allocations: 89.15 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001663/0.5462, allocations: 0.5837 MB / 0.782 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002592/0.5465, allocations: 56.5 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.613e-05/0.5465, allocations: 0 / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.5465, allocations: 0 / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.4e-06/0.5465, allocations: 0 / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.5467, allocations: 10.45 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.153e-05/0.5468, allocations: 7.297 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.5469, allocations: 2.391 kB / 0.782 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.696e-05/0.5469, allocations: 5.094 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.401e-05/0.5469, allocations: 5.766 kB / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.837e-06/0.5469, allocations: 0 / 0.782 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.906e-05/0.547, allocations: 11.06 kB / 0.7821 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.547, allocations: 4 kB / 0.7821 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.236e-05/0.547, allocations: 1.938 kB / 0.7821 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.572e-05/0.5471, allocations: 10.34 kB / 0.7821 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5471, allocations: 0 / 0.7821 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.694e-06/0.5472, allocations: 3.938 kB / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.5472, allocations: 0 / 0.7821 GB, free: 13.43 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003543/0.5475, allocations: 319.6 kB / 0.7824 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.5476, allocations: 8.844 kB / 0.7824 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.185e-05/0.5476, allocations: 36.44 kB / 0.7824 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.118e-05/0.5476, allocations: 1.547 kB / 0.7824 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.5478, allocations: 161.1 kB / 0.7826 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.5478, allocations: 1.906 kB / 0.7826 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.5478, allocations: 9.234 kB / 0.7826 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.737e-05/0.5479, allocations: 35.66 kB / 0.7826 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.5479, allocations: 3.938 kB / 0.7826 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.5479, allocations: 4 kB / 0.7826 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.5479, allocations: 2.109 kB / 0.7826 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.937e-05/0.548, allocations: 3.422 kB / 0.7826 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.5481, allocations: 149 kB / 0.7828 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.829e-05/0.5482, allocations: 25.8 kB / 0.7828 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.026e-05/0.5482, allocations: 12.39 kB / 0.7828 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001574/0.5484, allocations: 80.02 kB / 0.7829 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.5484, allocations: 32.75 kB / 0.7829 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.5484, allocations: 0 / 0.7829 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001368/0.5485, allocations: 49.05 kB / 0.783 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.5486, allocations: 52.02 kB / 0.783 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.579e-05/0.5487, allocations: 95.38 kB / 0.7831 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.5487, allocations: 25.7 kB / 0.7831 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.5487, allocations: 80.75 kB / 0.7832 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.5488, allocations: 4.906 kB / 0.7832 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.903e-05/0.5488, allocations: 14.64 kB / 0.7832 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000195/0.549, allocations: 311.5 kB / 0.7835 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.821e-05/0.5491, allocations: 10.03 kB / 0.7835 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.905e-06/0.5491, allocations: 3.031 kB / 0.7835 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.356e-05/0.5491, allocations: 16.72 kB / 0.7836 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5491, allocations: 0 / 0.7836 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.833e-05/0.5492, allocations: 37.58 kB / 0.7836 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.5492, allocations: 5.406 kB / 0.7836 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5492, allocations: 5.5 kB / 0.7836 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.5492, allocations: 0.75 kB / 0.7836 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.925e-05/0.5493, allocations: 7.094 kB / 0.7836 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.5493, allocations: 1.406 kB / 0.7836 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.5493, allocations: 4 kB / 0.7836 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.5493, allocations: 2.078 kB / 0.7836 GB, free: 11.71 MB / 0.5606 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.414e-05/0.5494, allocations: 111.2 kB / 0.7837 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.825e-06/0.5494, allocations: 0.9844 kB / 0.7837 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.295e-05/0.5495, allocations: 51.88 kB / 0.7838 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.5495, allocations: 0 / 0.7838 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5496, allocations: 9.094 kB / 0.7838 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.5496, allocations: 1.312 kB / 0.7838 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.5497, allocations: 146.6 kB / 0.7839 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5497, allocations: 0.6094 kB / 0.7839 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.119e-05/0.5497, allocations: 4.109 kB / 0.7839 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.5497, allocations: 0 / 0.7839 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.5497, allocations: 8.688 kB / 0.7839 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5497, allocations: 0 / 0.7839 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.5497, allocations: 0 / 0.7839 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.765e-05/0.5498, allocations: 73.23 kB / 0.784 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.5499, allocations: 77.86 kB / 0.7841 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.5499, allocations: 6.781 kB / 0.7841 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.123e-05/0.5499, allocations: 0.75 kB / 0.7841 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.55, allocations: 0.6094 kB / 0.7841 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.55, allocations: 2.438 kB / 0.7841 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.097e-05/0.55, allocations: 75.28 kB / 0.7842 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.55, allocations: 0 / 0.7842 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000187/0.5502, allocations: 9.641 kB / 0.7842 GB, free: 11.09 MB / 0.5606 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004213/0.5506, allocations: 0.6101 MB / 0.7848 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.738e-05/0.5507, allocations: 6.844 kB / 0.7848 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.5507, allocations: 0 / 0.7848 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.5507, allocations: 9.609 kB / 0.7848 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.5509, allocations: 1.844 kB / 0.7848 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002789/0.5512, allocations: 109.6 kB / 0.7849 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.5515, allocations: 0.6715 MB / 0.7855 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.22e-05/0.5515, allocations: 6.359 kB / 0.7855 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.129e-05/0.5515, allocations: 10.98 kB / 0.7856 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.5515, allocations: 0 / 0.7856 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.5727, allocations: 1.085 MB / 0.7866 GB, free: 9.285 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/8.239, allocations: 11 kB / 0.7866 GB, free: 9.281 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)