Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_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.001809/0.00181, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.002587/0.002587, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.071/2.071, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.245/1.245, allocations: 132.2 MB / 423.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005057/0.0005057, allocations: 12 kB / 0.5033 GB, free: 4.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7556/0.7561, allocations: 81.58 MB / 0.583 GB, free: 4.016 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002534/0.7588, allocations: 1.22 MB / 0.5842 GB, free: 3.129 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004775/0.7593, allocations: 109.8 kB / 0.5843 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.242e-05/0.7593, allocations: 0.6875 kB / 0.5843 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.179e-05/0.7594, allocations: 0.7031 kB / 0.5843 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.935e-05/0.7594, allocations: 10.08 kB / 0.5843 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.7597, allocations: 20 kB / 0.5843 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.239e-05/0.7598, allocations: 16.89 kB / 0.5843 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.7599, allocations: 8.859 kB / 0.5843 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.837e-05/0.76, allocations: 11.14 kB / 0.5843 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.494e-05/0.7601, allocations: 15.3 kB / 0.5843 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.7601, allocations: 1.125 kB / 0.5843 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.65e-05/0.7602, allocations: 6.938 kB / 0.5844 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.677e-05/0.7602, allocations: 6.406 kB / 0.5844 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.7603, allocations: 34.67 kB / 0.5844 GB, free: 2.969 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.7604, allocations: 20.34 kB / 0.5844 GB, free: 2.965 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.7604, allocations: 0 / 0.5844 GB, free: 2.965 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7604, allocations: 1.469 kB / 0.5844 GB, free: 2.965 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.7604, allocations: 0 / 0.5844 GB, free: 2.965 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005412/0.761, allocations: 347.9 kB / 0.5847 GB, free: 2.605 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.178e-05/0.761, allocations: 9.797 kB / 0.5848 GB, free: 2.605 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.544e-05/0.7611, allocations: 35.06 kB / 0.5848 GB, free: 2.562 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.7611, allocations: 5.969 kB / 0.5848 GB, free: 2.559 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.7613, allocations: 175 kB / 0.585 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.7613, allocations: 1.062 kB / 0.585 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.7613, allocations: 1.094 kB / 0.585 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.7616, allocations: 63.14 kB / 0.585 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.7617, allocations: 7.938 kB / 0.585 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.7617, allocations: 5.469 kB / 0.585 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.7617, allocations: 0.75 kB / 0.585 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000332/0.7621, allocations: 51.52 kB / 0.5851 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.7625, allocations: 264.6 kB / 0.5853 GB, free: 2.012 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.763, allocations: 69 kB / 0.5854 GB, free: 1.973 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.7632, allocations: 82.34 kB / 0.5855 GB, free: 1.879 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.7632, allocations: 35.56 kB / 0.5855 GB, free: 1.836 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.7633, allocations: 0 / 0.5855 GB, free: 1.836 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006447/0.7639, allocations: 106.6 kB / 0.5856 GB, free: 1.793 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.764, allocations: 53 kB / 0.5857 GB, free: 1.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.957e-05/0.7641, allocations: 106.2 kB / 0.5858 GB, free: 1.625 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.7641, allocations: 25.7 kB / 0.5858 GB, free: 1.594 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.306e-05/0.7641, allocations: 85.75 kB / 0.5859 GB, free: 1.508 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.7642, allocations: 9.922 kB / 0.5859 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-06/0.7642, allocations: 4.969 kB / 0.5859 GB, free: 1.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.057e-05/0.7643, allocations: 313 kB / 0.5862 GB, free: 1.184 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.7645, allocations: 28.56 kB / 0.5862 GB, free: 1.176 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.7646, allocations: 28.95 kB / 0.5862 GB, free: 1.168 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.7648, allocations: 25.19 kB / 0.5863 GB, free: 1.164 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.7648, allocations: 0 / 0.5863 GB, free: 1.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003794/0.7652, allocations: 86.83 kB / 0.5864 GB, free: 1.121 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.7652, allocations: 5.188 kB / 0.5864 GB, free: 1.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.7653, allocations: 5.641 kB / 0.5864 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.7653, allocations: 0 / 0.5864 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.7654, allocations: 13.36 kB / 0.5864 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.7654, allocations: 1.578 kB / 0.5864 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.7656, allocations: 12.12 kB / 0.5864 GB, free: 1.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.7656, allocations: 5.375 kB / 0.5864 GB, free: 1.109 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.y,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.724e-05/0.7657, allocations: 121.1 kB / 0.5865 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.7657, allocations: 1.344 kB / 0.5865 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004005/0.7661, allocations: 88.28 kB / 0.5866 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.7662, allocations: 0.75 kB / 0.5866 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.7662, allocations: 1.031 kB / 0.5866 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.7662, allocations: 4.656 kB / 0.5866 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002258/0.7664, allocations: 166.7 kB / 0.5868 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.7664, allocations: 0.5625 kB / 0.5868 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.7666, allocations: 17.59 kB / 0.5868 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.7666, allocations: 0.625 kB / 0.5868 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.7666, allocations: 1.359 kB / 0.5868 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.7666, allocations: 1.031 kB / 0.5868 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7666, allocations: 0 / 0.5868 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004068/0.767, allocations: 190.5 kB / 0.587 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.44e-05/0.7671, allocations: 86.47 kB / 0.587 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.7671, allocations: 2.281 kB / 0.587 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.7673, allocations: 11.97 kB / 0.5871 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.7674, allocations: 9.766 kB / 0.5871 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.7674, allocations: 5.734 kB / 0.5871 GB, free: 472 kB / 430.1 MB Notification: Performance of sorting global known variables: time 3.584e-05/0.7675, allocations: 80.05 kB / 0.5871 GB, free: 396 kB / 430.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7675, allocations: 0 / 0.5871 GB, free: 396 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004676/0.7679, allocations: 11.19 kB / 0.5872 GB, free: 392 kB / 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.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 (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.0008743/0.7688, allocations: 0.7169 MB / 0.5879 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.7693, allocations: 64.38 kB / 0.5879 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.7693, allocations: 0 / 0.5879 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.7695, allocations: 29.53 kB / 0.5879 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.7698, allocations: 2.609 kB / 0.5879 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007375/0.7705, allocations: 156.2 kB / 0.5881 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.771, allocations: 0.6813 MB / 0.5888 GB, free: 14.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.446e-05/0.7711, allocations: 2.344 kB / 0.5888 GB, free: 14.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.367e-05/0.7711, allocations: 14.97 kB / 0.5888 GB, free: 14.82 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.7712, allocations: 0 / 0.5888 GB, free: 14.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.7906, allocations: 1.251 MB / 0.59 GB, free: 14.67 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002881/0.7909, allocations: 161.3 kB / 0.5902 GB, free: 14.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.545/3.336, allocations: 3.828 kB / 0.5902 GB, free: 14.43 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: