Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_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.0009591/0.0009592, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7259/0.7259, allocations: 133.6 MB / 141.6 MB, free: 2.863 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 221.5 MB / 395.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009361/0.0009361, allocations: 100.5 kB / 478.2 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.594e-05, allocations: 8 kB / 0.5535 GB, free: 8.961 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.501/0.5011, allocations: 82.31 MB / 0.6339 GB, free: 40.8 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1742/0.6753, allocations: 110.9 MB / 0.7422 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.6756, allocations: 79.95 kB / 0.7423 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.002594/0.6782, allocations: 0.9272 MB / 0.7432 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.433e-06/0.6782, allocations: 4 kB / 0.7432 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.6782, allocations: 0 / 0.7432 GB, free: 10.82 MB / 0.5261 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.0003987/0.6786, allocations: 354.4 kB / 0.7435 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.6787, allocations: 12.03 kB / 0.7435 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.6787, allocations: 3.906 kB / 0.7435 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.6789, allocations: 171 kB / 0.7437 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.6789, allocations: 4 kB / 0.7437 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.6789, allocations: 4 kB / 0.7437 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.71e-05/0.679, allocations: 15.94 kB / 0.7437 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.978e-05/0.6791, allocations: 45.67 kB / 0.7437 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.6791, allocations: 4 kB / 0.7438 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.6792, allocations: 0 / 0.7438 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.6792, allocations: 3.938 kB / 0.7438 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004465/0.6796, allocations: 257.5 kB / 0.744 GB, free: 9.836 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.6799, allocations: 42.56 kB / 0.744 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.891e-05/0.6799, allocations: 16.95 kB / 0.7441 GB, free: 9.766 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001476/0.6801, allocations: 85.09 kB / 0.7441 GB, free: 9.664 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.6801, allocations: 30.56 kB / 0.7442 GB, free: 9.625 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.6801, allocations: 4 kB / 0.7442 GB, free: 9.621 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002424/0.6804, allocations: 49.59 kB / 0.7442 GB, free: 9.566 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/0.6804, allocations: 51.41 kB / 0.7443 GB, free: 9.504 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.194e-05/0.6805, allocations: 93 kB / 0.7444 GB, free: 9.406 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.6806, allocations: 25.7 kB / 0.7444 GB, free: 9.375 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.6806, allocations: 88.12 kB / 0.7445 GB, free: 9.285 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.6807, allocations: 7.844 kB / 0.7445 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.6807, allocations: 0 / 0.7445 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.6808, allocations: 318.8 kB / 0.7448 GB, free: 8.957 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.292e-05/0.6808, allocations: 12 kB / 0.7448 GB, free: 8.945 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.64e-05/0.6809, allocations: 4 kB / 0.7448 GB, free: 8.941 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.496e-05/0.6809, allocations: 11.98 kB / 0.7448 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6809, allocations: 7.938 kB / 0.7448 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.118e-05/0.681, allocations: 45.69 kB / 0.7449 GB, free: 8.871 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.6811, allocations: 4 kB / 0.7449 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.6811, allocations: 0 / 0.7449 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.6811, allocations: 0 / 0.7449 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.6812, allocations: 15.98 kB / 0.7449 GB, free: 8.852 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.6812, allocations: 4 kB / 0.7449 GB, free: 8.848 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.191e-05/0.6813, allocations: 8 kB / 0.7449 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.6813, allocations: 0 / 0.7449 GB, free: 8.84 MB / 0.5261 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 (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 7.933e-05/0.6814, allocations: 108.9 kB / 0.745 GB, free: 8.727 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001084/0.6815, allocations: 57.91 kB / 0.745 GB, free: 8.664 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.03e-05/0.6815, allocations: 4 kB / 0.745 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.6817, allocations: 57.84 kB / 0.7451 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.6817, allocations: 0 / 0.7451 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6817, allocations: 0 / 0.7451 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.6817, allocations: 0 / 0.7451 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.6819, allocations: 146.2 kB / 0.7452 GB, free: 8.414 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.6819, allocations: 0 / 0.7452 GB, free: 8.414 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.254e-05/0.682, allocations: 15.98 kB / 0.7453 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.682, allocations: 0 / 0.7453 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.682, allocations: 0 / 0.7453 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.682, allocations: 8 kB / 0.7453 GB, free: 8.391 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.682, allocations: 4 kB / 0.7453 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.6822, allocations: 147.4 kB / 0.7454 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.6822, allocations: 92.89 kB / 0.7455 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.6823, allocations: 0 / 0.7455 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.659e-05/0.6824, allocations: 8 kB / 0.7455 GB, free: 8.109 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.6824, allocations: 7.984 kB / 0.7455 GB, free: 8.102 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.6824, allocations: 0 / 0.7455 GB, free: 8.102 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.224e-05/0.6825, allocations: 87.27 kB / 0.7456 GB, free: 8.016 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6825, allocations: 0 / 0.7456 GB, free: 8.016 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002236/0.6827, allocations: 19.94 kB / 0.7456 GB, free: 7.996 MB / 0.5261 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,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.000536/0.6833, allocations: 0.6812 MB / 0.7463 GB, free: 7.289 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000105/0.6834, allocations: 23.98 kB / 0.7463 GB, free: 7.266 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6834, allocations: 0 / 0.7463 GB, free: 7.266 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.054e-05/0.6834, allocations: 12 kB / 0.7463 GB, free: 7.254 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.6836, allocations: 4 kB / 0.7463 GB, free: 7.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003809/0.684, allocations: 101.6 kB / 0.7464 GB, free: 7.113 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.6843, allocations: 0.6768 MB / 0.7471 GB, free: 6.41 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.479e-05/0.6843, allocations: 11.94 kB / 0.7471 GB, free: 6.398 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.6844, allocations: 19.36 kB / 0.7471 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of SimCode: time 2.81e-07/0.6844, allocations: 0 / 0.7471 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.706, allocations: 0.9615 MB / 0.748 GB, free: 5.426 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.7063, allocations: 125.8 kB / 0.7482 GB, free: 5.234 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.515/2.221, allocations: 0 / 0.7482 GB, free: 5.234 MB / 0.5261 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)