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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004879/0.004879, allocations: 100.8 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.001289/0.001289, allocations: 194.1 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8486/0.8486, allocations: 135.6 MB / 426.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 67.89 kB / 0.5857 GB, free: 21.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1304, allocations: 81.02 MB / 0.6649 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002462/0.1329, allocations: 1.503 MB / 0.6663 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003234/0.1333, allocations: 132.4 kB / 0.6665 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.871e-05/0.1333, allocations: 0 / 0.6665 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.42e-05/0.1334, allocations: 0 / 0.6665 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.553e-05/0.1334, allocations: 7.922 kB / 0.6665 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.1336, allocations: 27.91 kB / 0.6665 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.484e-05/0.1337, allocations: 23.98 kB / 0.6665 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.399e-05/0.1338, allocations: 11.94 kB / 0.6665 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.036e-05/0.1338, allocations: 11.92 kB / 0.6665 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.891e-05/0.1339, allocations: 23.97 kB / 0.6666 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.1339, allocations: 4 kB / 0.6666 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.633e-05/0.1339, allocations: 12 kB / 0.6666 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.668e-05/0.134, allocations: 11.92 kB / 0.6666 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.635e-05/0.134, allocations: 11.94 kB / 0.6666 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.1341, allocations: 40.09 kB / 0.6666 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1341, allocations: 0 / 0.6666 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1341, allocations: 0 / 0.6666 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.1341, allocations: 0 / 0.6666 GB, free: 3.781 MB / 0.4981 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.0004491/0.1346, allocations: 343.5 kB / 0.667 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1346, allocations: 13.11 kB / 0.667 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.561e-05/0.1347, allocations: 34.75 kB / 0.667 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.117e-05/0.1347, allocations: 0.9375 kB / 0.667 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.1348, allocations: 172.3 kB / 0.6672 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.1348, allocations: 384 / 0.6672 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.654e-06/0.1348, allocations: 384 / 0.6672 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.135, allocations: 62.17 kB / 0.6672 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.135, allocations: 3.938 kB / 0.6672 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.1351, allocations: 4 kB / 0.6672 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1351, allocations: 0 / 0.6672 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.1353, allocations: 39.95 kB / 0.6673 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003454/0.1356, allocations: 268.9 kB / 0.6675 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.136, allocations: 62.48 kB / 0.6676 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.1361, allocations: 24.89 kB / 0.6676 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001133/0.1362, allocations: 85.11 kB / 0.6677 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.1362, allocations: 34.55 kB / 0.6677 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1362, allocations: 0 / 0.6677 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003822/0.1366, allocations: 93.62 kB / 0.6678 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.1367, allocations: 55.34 kB / 0.6679 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.791e-05/0.1367, allocations: 109.8 kB / 0.668 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.1368, allocations: 25.7 kB / 0.668 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.717e-05/0.1368, allocations: 92.03 kB / 0.6681 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.1368, allocations: 3.953 kB / 0.6681 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.1369, allocations: 17.7 kB / 0.6681 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.137, allocations: 318.8 kB / 0.6684 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.394e-05/0.1371, allocations: 19.98 kB / 0.6684 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.531e-05/0.1372, allocations: 19.97 kB / 0.6685 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.1374, allocations: 44.77 kB / 0.6685 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1374, allocations: 0 / 0.6685 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002239/0.1376, allocations: 77.64 kB / 0.6686 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.1376, allocations: 8 kB / 0.6686 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.1376, allocations: 0 / 0.6686 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1377, allocations: 4 kB / 0.6686 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.982e-05/0.1377, allocations: 15.92 kB / 0.6686 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1378, allocations: 4 kB / 0.6686 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.521e-05/0.1378, allocations: 7.984 kB / 0.6686 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.1378, allocations: 0 / 0.6686 GB, free: 1.504 MB / 0.4981 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 7.525e-05/0.1379, allocations: 109.8 kB / 0.6687 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.1379, allocations: 12 kB / 0.6687 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002584/0.1382, allocations: 77.14 kB / 0.6688 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1382, allocations: 0 / 0.6688 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1382, allocations: 0 / 0.6688 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1382, allocations: 0 / 0.6688 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.1384, allocations: 173.5 kB / 0.669 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1384, allocations: 0 / 0.669 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.699e-05/0.1385, allocations: 15.92 kB / 0.669 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1385, allocations: 4 kB / 0.669 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1385, allocations: 0 / 0.669 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1385, allocations: 0 / 0.669 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1385, allocations: 4 kB / 0.669 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.1388, allocations: 176 kB / 0.6692 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.1389, allocations: 81.11 kB / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.1389, allocations: 0 / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.601e-05/0.139, allocations: 12.03 kB / 0.6693 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.139, allocations: 7.984 kB / 0.6693 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.139, allocations: 4 kB / 0.6693 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.383e-05/0.1391, allocations: 83.27 kB / 0.6693 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1391, allocations: 3.938 kB / 0.6693 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000228/0.1393, allocations: 4 kB / 0.6693 GB, free: 0.6484 MB / 0.4981 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.0005935/0.1399, allocations: 0.7162 MB / 0.67 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.1402, allocations: 47.95 kB / 0.6701 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1402, allocations: 0 / 0.6701 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.1403, allocations: 19.92 kB / 0.6701 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.1405, allocations: 19.08 kB / 0.6701 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003884/0.1409, allocations: 139 kB / 0.6703 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.1412, allocations: 0.6807 MB / 0.6709 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.634e-05/0.1412, allocations: 0 / 0.6709 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.814e-05/0.1413, allocations: 15.42 kB / 0.6709 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.1413, allocations: 0 / 0.6709 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1228/0.2641, allocations: 1.579 MB / 0.6725 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.895/9.16, allocations: 0.5625 kB / 0.6725 GB, free: 13.41 MB / 0.5137 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/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)