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.005914/0.005914, allocations: 99.45 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.002078/0.002078, allocations: 192.2 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003132/0.003132, allocations: 293.1 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.9159/0.9159, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 100.2 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.4012, allocations: 86.99 MB / 0.7659 GB, free: 3.996 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002645/0.4039, allocations: 1.494 MB / 0.7674 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003259/0.4042, allocations: 128.5 kB / 0.7675 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.4043, allocations: 4 kB / 0.7675 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.521e-05/0.4043, allocations: 7.938 kB / 0.7675 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.781e-05/0.4044, allocations: 0 / 0.7675 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.4046, allocations: 19.91 kB / 0.7675 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.708e-05/0.4047, allocations: 35.84 kB / 0.7676 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.4048, allocations: 8 kB / 0.7676 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.844e-05/0.4048, allocations: 15.98 kB / 0.7676 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.975e-05/0.4049, allocations: 15.92 kB / 0.7676 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.4049, allocations: 0 / 0.7676 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.177e-05/0.405, allocations: 19.98 kB / 0.7676 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.37e-05/0.405, allocations: 4 kB / 0.7676 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.928e-05/0.405, allocations: 15.92 kB / 0.7676 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.4052, allocations: 35.69 kB / 0.7677 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.4052, allocations: 0 / 0.7677 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4052, allocations: 4 kB / 0.7677 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.246e-05/0.4052, allocations: 0 / 0.7677 GB, free: 2.18 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.0005319/0.4057, allocations: 352.6 kB / 0.768 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.4058, allocations: 8.031 kB / 0.768 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.62e-05/0.4058, allocations: 34.75 kB / 0.7681 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.4059, allocations: 4.938 kB / 0.7681 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.406, allocations: 168.3 kB / 0.7682 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.585e-05/0.4061, allocations: 8.312 kB / 0.7682 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.4061, allocations: 4.375 kB / 0.7682 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000195/0.4063, allocations: 54.22 kB / 0.7683 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.4063, allocations: 3.938 kB / 0.7683 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.4063, allocations: 4 kB / 0.7683 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.4063, allocations: 0 / 0.7683 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.4065, allocations: 43.95 kB / 0.7683 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.4069, allocations: 260.9 kB / 0.7686 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.4073, allocations: 62.53 kB / 0.7686 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.4074, allocations: 28.83 kB / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.4076, allocations: 81.11 kB / 0.7687 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.4076, allocations: 34.56 kB / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4076, allocations: 0 / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004145/0.408, allocations: 97.56 kB / 0.7689 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.353e-05/0.4081, allocations: 55.41 kB / 0.7689 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.686e-05/0.4082, allocations: 109.8 kB / 0.769 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.4082, allocations: 25.7 kB / 0.7691 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.465e-05/0.4082, allocations: 80.14 kB / 0.7691 GB, free: 476 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.4083, allocations: 7.953 kB / 0.7691 GB, free: 468 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.4083, allocations: 17.72 kB / 0.7692 GB, free: 444 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.4084, allocations: 314.8 kB / 0.7695 GB, free: 120 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.175e-05/0.4085, allocations: 15.98 kB / 0.7695 GB, free: 104 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.294e-05/0.4086, allocations: 23.98 kB / 0.7695 GB, free: 80 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.4088, allocations: 52.75 kB / 0.7695 GB, free: 24 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4088, allocations: 0 / 0.7695 GB, free: 24 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002448/0.4091, allocations: 70.14 kB / 0.7696 GB, free: 15.95 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.4091, allocations: 11.98 kB / 0.7696 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.4091, allocations: 3.938 kB / 0.7696 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.4091, allocations: 48 / 0.7696 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.269e-05/0.4092, allocations: 15.98 kB / 0.7696 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.4092, allocations: 3.984 kB / 0.7696 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.631e-05/0.4093, allocations: 4 kB / 0.7697 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.4093, allocations: 4 kB / 0.7697 GB, free: 15.9 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.471e-05/0.4094, allocations: 113.8 kB / 0.7698 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.4094, allocations: 7.938 kB / 0.7698 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002716/0.4097, allocations: 85.08 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4097, allocations: 4 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4097, allocations: 3.938 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4098, allocations: 0 / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.4099, allocations: 165.6 kB / 0.77 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4099, allocations: 0 / 0.77 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.948e-05/0.41, allocations: 8 kB / 0.77 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.41, allocations: 3.984 kB / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.41, allocations: 4 kB / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.41, allocations: 0 / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.41, allocations: 4 kB / 0.77 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002534/0.4103, allocations: 167.5 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.4103, allocations: 81.05 kB / 0.7703 GB, free: 15.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.4104, allocations: 3.984 kB / 0.7703 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.191e-05/0.4104, allocations: 8 kB / 0.7703 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.4105, allocations: 11.98 kB / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.4105, allocations: 3.938 kB / 0.7703 GB, free: 15.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.642e-05/0.4106, allocations: 83.28 kB / 0.7704 GB, free: 15.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4106, allocations: 0 / 0.7704 GB, free: 15.06 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002169/0.4108, allocations: 8 kB / 0.7704 GB, free: 15.05 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.0005368/0.4113, allocations: 0.7124 MB / 0.7711 GB, free: 14.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002256/0.4116, allocations: 47.88 kB / 0.7711 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.4116, allocations: 0 / 0.7711 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.59e-05/0.4117, allocations: 23.98 kB / 0.7712 GB, free: 14.24 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.412, allocations: 4 kB / 0.7712 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004902/0.4125, allocations: 157.3 kB / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.4128, allocations: 0.6768 MB / 0.772 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.537e-05/0.4129, allocations: 7.984 kB / 0.772 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.4129, allocations: 15.44 kB / 0.772 GB, free: 13.32 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4129, allocations: 0 / 0.772 GB, free: 13.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01836/0.4313, allocations: 1.595 MB / 0.7735 GB, free: 11.82 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.459/7.89, allocations: 8 kB / 0.7736 GB, free: 11.81 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)