Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004075/0.004075, allocations: 182.9 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8159/0.8159, allocations: 133.5 MB / 141.4 MB, free: 15.68 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.713/1.713, allocations: 221.3 MB / 395 MB, free: 10.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 98.78 kB / 477.8 MB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5429/0.544, allocations: 88.44 MB / 0.5529 GB, free: 88.94 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.7691, allocations: 82.29 MB / 0.6333 GB, free: 14.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.641/1.41, allocations: 109.8 MB / 0.7406 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/1.411, allocations: 74.91 kB / 0.7406 GB, free: 10.8 MB / 0.4948 GB 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.00198/1.413, allocations: 0.5178 MB / 0.7411 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/1.413, allocations: 12.28 kB / 0.7411 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/1.413, allocations: 0 / 0.7411 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/1.413, allocations: 168.3 kB / 0.7413 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/1.413, allocations: 0 / 0.7413 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/1.413, allocations: 0.5 kB / 0.7413 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001118/1.413, allocations: 8.625 kB / 0.7413 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/1.413, allocations: 31.45 kB / 0.7413 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/1.413, allocations: 0 / 0.7413 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/1.413, allocations: 0 / 0.7413 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/1.413, allocations: 0 / 0.7413 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/1.414, allocations: 135.2 kB / 0.7415 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.509e-05/1.414, allocations: 23.27 kB / 0.7415 GB, free: 26.02 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.032e-05/1.414, allocations: 16.59 kB / 0.7415 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002872/1.414, allocations: 82.47 kB / 0.7416 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/1.414, allocations: 31.08 kB / 0.7416 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 1.422e-06/1.414, allocations: 0 / 0.7416 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0002397/1.414, allocations: 35.36 kB / 0.7416 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/1.414, allocations: 51.41 kB / 0.7417 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.327e-05/1.414, allocations: 85.89 kB / 0.7418 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/1.414, allocations: 25.7 kB / 0.7418 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.94e-05/1.414, allocations: 91.8 kB / 0.7419 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/1.415, allocations: 3.906 kB / 0.7419 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/1.415, allocations: 0 / 0.7419 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002171/1.415, allocations: 312 kB / 0.7422 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/1.415, allocations: 0 / 0.7422 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.644e-06/1.415, allocations: 7.812 kB / 0.7422 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.696e-05/1.415, allocations: 5.094 kB / 0.7422 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.415, allocations: 0 / 0.7422 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.895e-05/1.415, allocations: 43.06 kB / 0.7422 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/1.415, allocations: 3.844 kB / 0.7422 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.415, allocations: 0.6562 kB / 0.7422 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/1.415, allocations: 4.688 kB / 0.7423 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.018e-05/1.415, allocations: 4.469 kB / 0.7423 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/1.415, allocations: 4.562 kB / 0.7423 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/1.415, allocations: 0 / 0.7423 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/1.415, allocations: 0.5 kB / 0.7423 GB, free: 25.21 MB / 0.5105 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,n) * Number of discrete 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 0.000108/1.415, allocations: 105.5 kB / 0.7424 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-06/1.415, allocations: 4.031 kB / 0.7424 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/1.415, allocations: 48.8 kB / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/1.415, allocations: 3.938 kB / 0.7424 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.415, allocations: 3.906 kB / 0.7424 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/1.415, allocations: 0.75 kB / 0.7424 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.273e-05/1.416, allocations: 127.6 kB / 0.7425 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/1.416, allocations: 1.938 kB / 0.7425 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.218e-05/1.416, allocations: 0.7031 kB / 0.7425 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.416, allocations: 3.844 kB / 0.7426 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.622e-06/1.416, allocations: 0.75 kB / 0.7426 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/1.416, allocations: 4.656 kB / 0.7426 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.416, allocations: 0 / 0.7426 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.462e-05/1.416, allocations: 63.33 kB / 0.7426 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001856/1.416, allocations: 449.1 kB / 0.743 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.259e-05/1.416, allocations: 81.56 kB / 0.7431 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/1.416, allocations: 0 / 0.7431 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.16e-05/1.416, allocations: 0.75 kB / 0.7431 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/1.416, allocations: 0.6094 kB / 0.7431 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/1.416, allocations: 4.531 kB / 0.7431 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.15e-05/1.416, allocations: 75.28 kB / 0.7432 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009363/1.417, allocations: 13.06 kB / 0.7432 GB, free: 24.21 MB / 0.5105 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,n) * Number of discrete 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.0002515/1.417, allocations: 111.8 kB / 0.7433 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 8.548e-05/1.417, allocations: 4.781 kB / 0.7433 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/1.417, allocations: 0 / 0.7433 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.316e-05/1.417, allocations: 7.75 kB / 0.7433 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/1.418, allocations: 8.406 kB / 0.7433 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/1.418, allocations: 45.56 kB / 0.7434 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003321/1.418, allocations: 0.6871 MB / 0.7441 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of SimCode: time 2.2e-07/1.418, allocations: 0 / 0.7441 GB, free: 23.34 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)