Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",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 3.2.3+maint.om/package.mo): time 0.0009936/0.0009936, allocations: 183.7 kB / 8.478 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.087/1.087, allocations: 205.2 MB / 214.1 MB, free: 5.438 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009348/0.0009349, allocations: 87.67 kB / 262.1 MB, free: 5.5 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.152/0.153, allocations: 52.98 MB / 315.1 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06443/0.2174, allocations: 47.57 MB / 362.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/0.4334, allocations: 91.72 MB / 454.4 MB, free: 8.305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.4336, allocations: 86.98 kB / 454.4 MB, free: 8.293 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.1595/0.5931, allocations: 59.44 MB / 0.5018 GB, free: 13.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.5932, allocations: 8 kB / 0.5019 GB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008098/0.6013, allocations: 1.599 MB / 0.5034 GB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008197/0.6095, allocations: 3.463 MB / 0.5068 GB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.6096, allocations: 80 kB / 0.5069 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006632/0.6103, allocations: 144 kB / 0.507 GB, free: 7.684 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005805/0.6161, allocations: 4.182 MB / 0.5111 GB, free: 3.496 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007302/0.6234, allocations: 6.288 MB / 0.5172 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.551e-05/0.6235, allocations: 35.69 kB / 0.5173 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.6238, allocations: 20 kB / 0.5173 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008698/0.6247, allocations: 0.7654 MB / 0.518 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02875/0.6535, allocations: 30.75 MB / 0.5481 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002411/0.6559, allocations: 2.177 MB / 0.5502 GB, free: 9.602 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.6573, allocations: 1.16 MB / 0.5513 GB, free: 8.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007421/0.658, allocations: 363.6 kB / 0.5517 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.6581, allocations: 42.94 kB / 0.5517 GB, free: 7.969 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.246e-06/0.6581, allocations: 0 / 0.5517 GB, free: 7.969 MB / 410.7 MB Notification: Performance of matching and sorting (n=114): time 0.01949/0.6776, allocations: 9.568 MB / 0.5611 GB, free: 14.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.6777, allocations: 141 kB / 0.5612 GB, free: 14.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002632/0.6803, allocations: 2.106 MB / 0.5632 GB, free: 11.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.68e-05/0.6804, allocations: 25.7 kB / 0.5633 GB, free: 11.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.6815, allocations: 1.981 MB / 0.5652 GB, free: 9.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.6819, allocations: 442.4 kB / 0.5656 GB, free: 9.484 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.682, allocations: 0 / 0.5656 GB, free: 9.484 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003055/0.6823, allocations: 0.5393 MB / 0.5662 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/0.6842, allocations: 1.434 MB / 0.5676 GB, free: 7.492 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003341/0.6876, allocations: 4.12 MB / 0.5716 GB, free: 2.004 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1081/0.7957, allocations: 2.533 MB / 0.574 GB, free: 156.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.871e-05/0.7958, allocations: 27.44 kB / 0.5741 GB, free: 156.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.008933/0.8048, allocations: 5.639 MB / 0.5796 GB, free: 156.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.8048, allocations: 3.969 kB / 0.5796 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.053e-05/0.8048, allocations: 105.4 kB / 0.5797 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002212/0.8071, allocations: 0.7895 MB / 0.5805 GB, free: 156.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/0.8098, allocations: 0.9733 MB / 0.5814 GB, free: 156.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004648/0.8145, allocations: 4.219 MB / 0.5855 GB, free: 155.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/0.8171, allocations: 178.6 kB / 0.5857 GB, free: 155.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002939/0.8174, allocations: 266.7 kB / 0.586 GB, free: 155.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 441 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (523): * Single equations (assignments): 519 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003954/0.8178, allocations: 345.3 kB / 0.5863 GB, free: 155.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/0.8181, allocations: 213 kB / 0.5865 GB, free: 155.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004439/0.8226, allocations: 2.196 MB / 0.5886 GB, free: 155 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.8226, allocations: 11.39 kB / 0.5886 GB, free: 155 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.8226, allocations: 3.938 kB / 0.5886 GB, free: 155 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.619e-06/0.8226, allocations: 7 kB / 0.5887 GB, free: 155 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008441/0.8311, allocations: 5.107 MB / 0.5936 GB, free: 154.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.8311, allocations: 0 / 0.5936 GB, free: 154.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007326/0.8319, allocations: 146.8 kB / 0.5938 GB, free: 154.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/0.8339, allocations: 0.6228 MB / 0.5944 GB, free: 154.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.811e-05/0.834, allocations: 10.41 kB / 0.5944 GB, free: 154.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004072/0.8381, allocations: 3.684 MB / 0.598 GB, free: 153.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.8381, allocations: 3.656 kB / 0.598 GB, free: 153.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005886/0.844, allocations: 4.398 MB / 0.6023 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00715/0.8512, allocations: 6.088 MB / 0.6082 GB, free: 151.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006784/0.8519, allocations: 448.6 kB / 0.6087 GB, free: 151 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.8522, allocations: 6.156 kB / 0.6087 GB, free: 151 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.8532, allocations: 47.2 kB / 0.6087 GB, free: 151 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.8533, allocations: 55.48 kB / 0.6088 GB, free: 151 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.968e-05/0.8534, allocations: 38.91 kB / 0.6088 GB, free: 151 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001569/0.855, allocations: 1.401 MB / 0.6102 GB, free: 150.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003596/0.8586, allocations: 0.5897 MB / 0.6108 GB, free: 150.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003316/0.859, allocations: 177.9 kB / 0.6109 GB, free: 150.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003872/0.8628, allocations: 3.413 MB / 0.6143 GB, free: 149.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8629, allocations: 3.219 kB / 0.6143 GB, free: 149.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.864, allocations: 1.047 MB / 0.6153 GB, free: 148.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000922/0.8649, allocations: 199 kB / 0.6155 GB, free: 148.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006511/0.8714, allocations: 4.698 MB / 0.6201 GB, free: 147.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0023/0.8738, allocations: 2.482 MB / 0.6225 GB, free: 146 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/0.8738, allocations: 0 / 0.6225 GB, free: 146 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)