Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_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/BuildingSystems 2.0.0-master/package.mo): time 0.7197/0.7197, allocations: 141.8 MB / 149.1 MB, free: 4.496 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 189.6 kB / 181.9 MB, free: 140 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 221.4 MB / 436 MB, free: 9.297 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 103.2 kB / 0.507 GB, free: 24.28 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001838/0.001838, allocations: 267.9 kB / 0.5884 GB, free: 12.35 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.166/0.1678, allocations: 89.65 MB / 0.676 GB, free: 2.621 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.4916, allocations: 82.77 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.6003, allocations: 108.1 MB / 0.8624 GB, free: 4.645 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.6005, allocations: 76.42 kB / 0.8625 GB, free: 4.574 MB / 0.5263 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.002606/0.6032, allocations: 0.9749 MB / 0.8634 GB, free: 3.57 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.6032, allocations: 8 kB / 0.8634 GB, free: 3.562 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.949e-05/0.6032, allocations: 8.938 kB / 0.8634 GB, free: 3.555 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.299e-05/0.6033, allocations: 167 kB / 0.8636 GB, free: 3.352 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.6033, allocations: 0 / 0.8636 GB, free: 3.352 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.6034, allocations: 8.953 kB / 0.8636 GB, free: 3.344 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.246e-05/0.6034, allocations: 12 kB / 0.8636 GB, free: 3.332 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.926e-05/0.6035, allocations: 46.25 kB / 0.8637 GB, free: 3.281 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.6035, allocations: 0 / 0.8637 GB, free: 3.281 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.6035, allocations: 4.625 kB / 0.8637 GB, free: 3.277 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.6035, allocations: 0 / 0.8637 GB, free: 3.277 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003645/0.6039, allocations: 265.2 kB / 0.8639 GB, free: 2.984 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.6041, allocations: 44.03 kB / 0.864 GB, free: 2.934 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.69e-05/0.6042, allocations: 12.92 kB / 0.864 GB, free: 2.918 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 9.73e-05/0.6043, allocations: 85.81 kB / 0.864 GB, free: 2.816 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.6043, allocations: 35.44 kB / 0.8641 GB, free: 2.773 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.6043, allocations: 0 / 0.8641 GB, free: 2.773 MB / 0.5263 GB Notification: Performance of matching and sorting (n=3): time 0.0001558/0.6045, allocations: 46.25 kB / 0.8641 GB, free: 2.723 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.372e-05/0.6045, allocations: 52.12 kB / 0.8642 GB, free: 2.66 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.398e-05/0.6045, allocations: 93.5 kB / 0.8643 GB, free: 2.562 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 7.254e-06/0.6046, allocations: 26.27 kB / 0.8643 GB, free: 2.531 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.735e-05/0.6046, allocations: 84.77 kB / 0.8644 GB, free: 2.445 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.6046, allocations: 11.91 kB / 0.8644 GB, free: 2.434 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.6046, allocations: 1.812 kB / 0.8644 GB, free: 2.434 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 3.577e-05/0.6047, allocations: 314.8 kB / 0.8647 GB, free: 2.117 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.756e-05/0.6047, allocations: 9.5 kB / 0.8647 GB, free: 2.109 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.431e-05/0.6047, allocations: 4 kB / 0.8647 GB, free: 2.105 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.46e-05/0.6047, allocations: 12.5 kB / 0.8647 GB, free: 2.094 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.6047, allocations: 0.75 kB / 0.8647 GB, free: 2.094 MB / 0.5263 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.483e-05/0.6048, allocations: 53.62 kB / 0.8648 GB, free: 2.035 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 8.455e-06/0.6048, allocations: 4.719 kB / 0.8648 GB, free: 2.031 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.6049, allocations: 0 / 0.8648 GB, free: 2.031 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.6049, allocations: 1.188 kB / 0.8648 GB, free: 2.031 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-05/0.605, allocations: 20.39 kB / 0.8648 GB, free: 2.012 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.605, allocations: 0.6875 kB / 0.8648 GB, free: 2.012 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.492e-05/0.6051, allocations: 13.58 kB / 0.8648 GB, free: 2 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.6051, allocations: 0 / 0.8648 GB, free: 2 MB / 0.5263 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 4.041e-05/0.6051, allocations: 102.8 kB / 0.8649 GB, free: 1.895 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.6051, allocations: 7.906 kB / 0.8649 GB, free: 1.887 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.6053, allocations: 60.69 kB / 0.865 GB, free: 1.824 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.6053, allocations: 432 / 0.865 GB, free: 1.824 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6053, allocations: 2.312 kB / 0.865 GB, free: 1.824 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.6053, allocations: 3.938 kB / 0.865 GB, free: 1.82 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.266e-05/0.6054, allocations: 143 kB / 0.8651 GB, free: 1.645 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6054, allocations: 4 kB / 0.8651 GB, free: 1.641 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.53e-05/0.6055, allocations: 13.92 kB / 0.8651 GB, free: 1.629 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.6055, allocations: 7.891 kB / 0.8651 GB, free: 1.621 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.074e-06/0.6055, allocations: 0 / 0.8651 GB, free: 1.621 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.6055, allocations: 4.812 kB / 0.8651 GB, free: 1.617 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6055, allocations: 0 / 0.8651 GB, free: 1.617 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001336/0.6057, allocations: 140.7 kB / 0.8653 GB, free: 1.465 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001467/0.6058, allocations: 0.5172 MB / 0.8658 GB, free: 0.9297 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 1.863e-05/0.6059, allocations: 89 kB / 0.8659 GB, free: 0.8242 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.6059, allocations: 0 / 0.8659 GB, free: 0.8242 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.766e-05/0.606, allocations: 8 kB / 0.8659 GB, free: 0.8164 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.606, allocations: 11.98 kB / 0.8659 GB, free: 0.8047 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.606, allocations: 0 / 0.8659 GB, free: 0.8047 MB / 0.5263 GB Notification: Performance of sort global known variables: time 1.757e-05/0.6061, allocations: 83.22 kB / 0.866 GB, free: 0.7227 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.0007728/0.6068, allocations: 25.14 kB / 0.866 GB, free: 0.6992 MB / 0.5263 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.0001253/0.607, allocations: 103.2 kB / 0.8661 GB, free: 0.5898 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 7.636e-05/0.6071, allocations: 23.98 kB / 0.8661 GB, free: 0.5664 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.6071, allocations: 0 / 0.8661 GB, free: 0.5664 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 2.856e-05/0.6071, allocations: 15.94 kB / 0.8661 GB, free: 0.5508 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.6073, allocations: 3.906 kB / 0.8661 GB, free: 0.5469 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002049/0.6075, allocations: 59.92 kB / 0.8662 GB, free: 476 kB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.6078, allocations: 0.6993 MB / 0.8669 GB, free: 15.74 MB / 0.5419 GB Notification: Performance of SimCode: time 2.51e-07/0.6078, allocations: 0 / 0.8669 GB, free: 15.74 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)