Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_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.001632/0.001632, allocations: 96.19 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00213/0.00213, allocations: 174.2 kB / 16.56 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.56/2.56, allocations: 223.2 MB / 240.5 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.188/1.188, allocations: 113.7 MB / 405.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005072/0.0005073, allocations: 16 kB / 493 MB, free: 8.609 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2555, allocations: 77.11 MB / 0.5567 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001135/0.2567, allocations: 295.2 kB / 0.557 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004103/0.2572, allocations: 47.89 kB / 0.5571 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.004e-05/0.2572, allocations: 4 kB / 0.5571 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.783e-05/0.2573, allocations: 0 / 0.5571 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.406e-06/0.2573, allocations: 0 / 0.5571 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.2576, allocations: 19.84 kB / 0.5571 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.42e-05/0.2577, allocations: 4 kB / 0.5571 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.651e-05/0.2578, allocations: 4 kB / 0.5571 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.22e-05/0.2579, allocations: 0 / 0.5571 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.373e-05/0.2579, allocations: 0 / 0.5571 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.258, allocations: 0 / 0.5571 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.2581, allocations: 7.984 kB / 0.5571 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-06/0.2581, allocations: 0 / 0.5571 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.102e-05/0.2582, allocations: 29.7 kB / 0.5571 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.2583, allocations: 11.98 kB / 0.5571 GB, free: 11.28 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2583, allocations: 0 / 0.5571 GB, free: 11.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.021e-06/0.2584, allocations: 0 / 0.5571 GB, free: 11.28 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.2584, allocations: 0 / 0.5571 GB, free: 11.28 MB / 430.1 MB 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.0005758/0.259, allocations: 311.4 kB / 0.5574 GB, free: 10.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.205e-05/0.259, allocations: 8.031 kB / 0.5574 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.75e-05/0.2591, allocations: 30.56 kB / 0.5575 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.2592, allocations: 4 kB / 0.5575 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.2593, allocations: 163 kB / 0.5576 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.2594, allocations: 4 kB / 0.5576 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.2594, allocations: 0 / 0.5576 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.2595, allocations: 41.64 kB / 0.5577 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2596, allocations: 0 / 0.5577 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.2596, allocations: 0 / 0.5577 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2596, allocations: 0 / 0.5577 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.193e-05/0.2596, allocations: 4 kB / 0.5577 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002004/0.2598, allocations: 149.7 kB / 0.5578 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.288e-05/0.2599, allocations: 30.55 kB / 0.5578 GB, free: 10.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001865/0.2601, allocations: 77.11 kB / 0.5579 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.2602, allocations: 42.61 kB / 0.558 GB, free: 10.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.2602, allocations: 3.938 kB / 0.558 GB, free: 10.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001884/0.2604, allocations: 45.59 kB / 0.558 GB, free: 10.19 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.2604, allocations: 51.41 kB / 0.5581 GB, free: 10.12 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.489e-05/0.2605, allocations: 89.98 kB / 0.5581 GB, free: 10.03 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.2605, allocations: 29.7 kB / 0.5582 GB, free: 9.992 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.999e-05/0.2606, allocations: 80.14 kB / 0.5582 GB, free: 9.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/0.2606, allocations: 15.84 kB / 0.5583 GB, free: 9.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.2606, allocations: 0 / 0.5583 GB, free: 9.895 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2608, allocations: 314.8 kB / 0.5586 GB, free: 9.578 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.2608, allocations: 0 / 0.5586 GB, free: 9.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.128e-06/0.2608, allocations: 4 kB / 0.5586 GB, free: 9.574 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.155e-05/0.2608, allocations: 0 / 0.5586 GB, free: 9.574 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2609, allocations: 4.062 kB / 0.5586 GB, free: 9.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.1e-05/0.2609, allocations: 37.7 kB / 0.5586 GB, free: 9.527 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2609, allocations: 11.98 kB / 0.5586 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.261, allocations: 0 / 0.5586 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.261, allocations: 0 / 0.5586 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.593e-05/0.2611, allocations: 4 kB / 0.5586 GB, free: 9.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2611, allocations: 3.953 kB / 0.5586 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.401e-05/0.2611, allocations: 288 / 0.5586 GB, free: 9.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.2611, allocations: 0 / 0.5586 GB, free: 9.508 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.676e-05/0.2612, allocations: 117.8 kB / 0.5587 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-06/0.2612, allocations: 0 / 0.5587 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.993e-05/0.2613, allocations: 48.75 kB / 0.5588 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2613, allocations: 0 / 0.5588 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.2613, allocations: 0 / 0.5588 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.2614, allocations: 3.953 kB / 0.5588 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.2615, allocations: 149.7 kB / 0.5589 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.2615, allocations: 4 kB / 0.5589 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.837e-05/0.2615, allocations: 4 kB / 0.5589 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2615, allocations: 32 / 0.5589 GB, free: 9.117 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.2615, allocations: 8 kB / 0.5589 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2615, allocations: 0 / 0.5589 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2616, allocations: 0 / 0.5589 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.976e-05/0.2616, allocations: 69.02 kB / 0.559 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.61e-05/0.2617, allocations: 77.11 kB / 0.5591 GB, free: 8.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.2617, allocations: 3.938 kB / 0.5591 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.2617, allocations: 0 / 0.5591 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/0.2618, allocations: 12.02 kB / 0.5591 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.2618, allocations: 0 / 0.5591 GB, free: 8.914 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.412e-05/0.2618, allocations: 77.41 kB / 0.5592 GB, free: 8.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2618, allocations: 0 / 0.5592 GB, free: 8.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.2621, allocations: 4 kB / 0.5592 GB, free: 8.836 MB / 430.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005379/0.2626, allocations: 0.6169 MB / 0.5598 GB, free: 8.188 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.486e-05/0.2627, allocations: 4 kB / 0.5598 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2628, allocations: 0 / 0.5598 GB, free: 8.184 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.676e-05/0.2628, allocations: 4 kB / 0.5598 GB, free: 8.18 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.2629, allocations: 14.17 kB / 0.5598 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003935/0.2633, allocations: 100.4 kB / 0.5599 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.2637, allocations: 0.6772 MB / 0.5606 GB, free: 7.328 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.59e-05/0.2637, allocations: 4 kB / 0.5606 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.874e-05/0.2637, allocations: 7.438 kB / 0.5606 GB, free: 7.316 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2637, allocations: 3.938 kB / 0.5606 GB, free: 7.312 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9508/1.215, allocations: 0.8503 MB / 0.5614 GB, free: 6.594 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005391/1.215, allocations: 172.6 kB / 0.5616 GB, free: 6.359 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.248/4.463, allocations: 64 / 0.5616 GB, free: 6.359 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: