Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 173.7 kB / 8 MB, free: 1.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5093/0.5093, allocations: 90.91 MB / 99.35 MB, free: 2.195 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 221.5 MB / 343.2 MB, free: 1.555 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 99.12 kB / 415.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.304e-05/2.307e-05, allocations: 4 kB / 494.6 MB, free: 52.31 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1667, allocations: 72.31 MB / 0.5536 GB, free: 12.18 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5447/0.7115, allocations: 101.1 MB / 0.6523 GB, free: 8.906 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.7118, allocations: 66.66 kB / 0.6524 GB, free: 8.871 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002624/0.7144, allocations: 0.944 MB / 0.6533 GB, free: 8.039 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.7144, allocations: 4 kB / 0.6533 GB, free: 8.035 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.7145, allocations: 0 / 0.6533 GB, free: 8.035 MB / 458.7 MB 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.0003718/0.7148, allocations: 350.1 kB / 0.6536 GB, free: 7.652 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.7149, allocations: 12.03 kB / 0.6536 GB, free: 7.641 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.7149, allocations: 11.88 kB / 0.6537 GB, free: 7.629 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.7151, allocations: 167.1 kB / 0.6538 GB, free: 7.426 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.7151, allocations: 3.188 kB / 0.6538 GB, free: 7.426 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.7151, allocations: 0 / 0.6538 GB, free: 7.426 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.577e-05/0.7152, allocations: 15.38 kB / 0.6538 GB, free: 7.414 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.573e-05/0.7153, allocations: 44 kB / 0.6539 GB, free: 7.371 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.7153, allocations: 0.8438 kB / 0.6539 GB, free: 7.371 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.7154, allocations: 0 / 0.6539 GB, free: 7.371 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.7154, allocations: 3.953 kB / 0.6539 GB, free: 7.367 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004626/0.7158, allocations: 268.7 kB / 0.6541 GB, free: 7.078 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.7161, allocations: 42.38 kB / 0.6542 GB, free: 7.035 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.805e-05/0.7161, allocations: 8.922 kB / 0.6542 GB, free: 7.023 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001209/0.7162, allocations: 88.67 kB / 0.6543 GB, free: 6.922 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.7163, allocations: 30.56 kB / 0.6543 GB, free: 6.883 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.7163, allocations: 0 / 0.6543 GB, free: 6.883 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001986/0.7165, allocations: 53.3 kB / 0.6544 GB, free: 6.828 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.7165, allocations: 59.34 kB / 0.6544 GB, free: 6.758 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.218e-05/0.7166, allocations: 96.86 kB / 0.6545 GB, free: 6.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.7166, allocations: 25.7 kB / 0.6545 GB, free: 6.629 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.597e-05/0.7167, allocations: 80.14 kB / 0.6546 GB, free: 6.547 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.7167, allocations: 15.34 kB / 0.6546 GB, free: 6.535 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.7167, allocations: 0 / 0.6546 GB, free: 6.535 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.7168, allocations: 314.8 kB / 0.6549 GB, free: 6.219 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.065e-05/0.7169, allocations: 11.92 kB / 0.6549 GB, free: 6.211 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.397e-05/0.7169, allocations: 4 kB / 0.6549 GB, free: 6.207 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.737e-05/0.7169, allocations: 7.938 kB / 0.6549 GB, free: 6.203 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.7169, allocations: 0 / 0.6549 GB, free: 6.203 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.219e-05/0.717, allocations: 45.5 kB / 0.655 GB, free: 6.156 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.7171, allocations: 4 kB / 0.655 GB, free: 6.152 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.7171, allocations: 0 / 0.655 GB, free: 6.152 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.7171, allocations: 8 kB / 0.655 GB, free: 6.145 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.33e-05/0.7172, allocations: 11.98 kB / 0.655 GB, free: 6.133 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.7172, allocations: 7.922 kB / 0.655 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.7173, allocations: 19.81 kB / 0.655 GB, free: 6.109 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.7173, allocations: 0 / 0.655 GB, free: 6.109 MB / 458.7 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.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.913e-05/0.7174, allocations: 101 kB / 0.6551 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001018/0.7175, allocations: 57.72 kB / 0.6552 GB, free: 5.945 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.7175, allocations: 0 / 0.6552 GB, free: 5.945 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.7176, allocations: 61.39 kB / 0.6552 GB, free: 5.883 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.7177, allocations: 3.953 kB / 0.6552 GB, free: 5.879 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.7177, allocations: 3.938 kB / 0.6553 GB, free: 5.875 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.7177, allocations: 4 kB / 0.6553 GB, free: 5.871 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.7178, allocations: 140.3 kB / 0.6554 GB, free: 5.703 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.7178, allocations: 0 / 0.6554 GB, free: 5.703 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.84e-05/0.7179, allocations: 8 kB / 0.6554 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.7179, allocations: 11.98 kB / 0.6554 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-06/0.7179, allocations: 0 / 0.6554 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.7179, allocations: 0 / 0.6554 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.718, allocations: 0 / 0.6554 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001334/0.7181, allocations: 151.2 kB / 0.6556 GB, free: 5.527 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.858e-05/0.7181, allocations: 81.05 kB / 0.6556 GB, free: 5.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.7182, allocations: 0 / 0.6556 GB, free: 5.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.034e-05/0.7183, allocations: 11.98 kB / 0.6556 GB, free: 5.418 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.774e-05/0.7183, allocations: 11.8 kB / 0.6557 GB, free: 5.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.7183, allocations: 0 / 0.6557 GB, free: 5.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.218e-05/0.7184, allocations: 79.28 kB / 0.6557 GB, free: 5.332 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7184, allocations: 0 / 0.6557 GB, free: 5.332 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000214/0.7186, allocations: 19.83 kB / 0.6557 GB, free: 5.312 MB / 458.7 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.y,fac.u) * Number of discrete 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 (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.000434/0.719, allocations: 0.6927 MB / 0.6564 GB, free: 4.602 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 8.245e-05/0.7191, allocations: 15.56 kB / 0.6564 GB, free: 4.594 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.7191, allocations: 4 kB / 0.6564 GB, free: 4.59 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 3.125e-05/0.7192, allocations: 19.23 kB / 0.6565 GB, free: 4.574 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.7193, allocations: 1.094 kB / 0.6565 GB, free: 4.574 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003452/0.7197, allocations: 93.53 kB / 0.6566 GB, free: 4.449 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.7199, allocations: 0.6807 MB / 0.6572 GB, free: 3.742 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.298e-05/0.72, allocations: 11.92 kB / 0.6572 GB, free: 3.73 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.072e-05/0.72, allocations: 15.38 kB / 0.6572 GB, free: 3.719 MB / 458.7 MB Notification: Performance of SimCode: time 2.51e-07/0.72, allocations: 0 / 0.6572 GB, free: 3.719 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.7447, allocations: 0.9676 MB / 0.6582 GB, free: 2.766 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002626/0.7451, allocations: 132.2 kB / 0.6583 GB, free: 2.566 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.52/2.265, allocations: 1.25 kB / 0.6583 GB, free: 2.566 MB / 458.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)