Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009769/0.0009769, allocations: 179.5 kB / 8.135 MB, free: 2.133 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.041/1.041, allocations: 221.4 MB / 230 MB, free: 2.98 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008971/0.0008971, allocations: 105.1 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0829/0.08382, allocations: 55.82 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.2388, allocations: 50.38 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08287/0.3217, allocations: 93.01 MB / 480 MB, free: 9.711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.3219, allocations: 83.45 kB / 480.1 MB, free: 9.633 MB / 362.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.2555/0.5774, allocations: 60.13 MB / 0.5276 GB, free: 63.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.967e-05/0.5775, allocations: 8 kB / 0.5276 GB, free: 63.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00667/0.5841, allocations: 1.6 MB / 0.5291 GB, free: 61.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00627/0.5904, allocations: 3.303 MB / 0.5324 GB, free: 59.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.347e-05/0.5905, allocations: 80 kB / 0.5324 GB, free: 58.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004233/0.5909, allocations: 143.9 kB / 0.5326 GB, free: 58.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004326/0.5953, allocations: 4.188 MB / 0.5367 GB, free: 55.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005666/0.6009, allocations: 6.285 MB / 0.5428 GB, free: 50.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.236e-05/0.601, allocations: 35.69 kB / 0.5428 GB, free: 50.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002951/0.6013, allocations: 20 kB / 0.5429 GB, free: 50.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006577/0.602, allocations: 0.7674 MB / 0.5436 GB, free: 49.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.6226, allocations: 30.72 MB / 0.5736 GB, free: 21.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.6244, allocations: 2.175 MB / 0.5757 GB, free: 18.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000985/0.6254, allocations: 1.152 MB / 0.5769 GB, free: 17.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006281/0.626, allocations: 375.1 kB / 0.5772 GB, free: 17.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.6261, allocations: 42.94 kB / 0.5773 GB, free: 17.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=106): time 3.456e-06/0.6261, allocations: 0 / 0.5773 GB, free: 17.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=114): time 0.0159/0.642, allocations: 9.509 MB / 0.5865 GB, free: 7.602 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.578e-05/0.642, allocations: 141 kB / 0.5867 GB, free: 7.434 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.6439, allocations: 2.09 MB / 0.5887 GB, free: 5.316 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-05/0.644, allocations: 25.7 kB / 0.5887 GB, free: 5.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006077/0.6446, allocations: 1.973 MB / 0.5907 GB, free: 3.277 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002367/0.6448, allocations: 450.2 kB / 0.5911 GB, free: 2.832 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.645, allocations: 4 kB / 0.5911 GB, free: 2.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.6452, allocations: 0.5393 MB / 0.5916 GB, free: 2.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.6467, allocations: 1.426 MB / 0.593 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003159/0.6498, allocations: 4.116 MB / 0.597 GB, free: 11.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003461/0.6533, allocations: 2.536 MB / 0.5995 GB, free: 8.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.561e-05/0.6533, allocations: 28 kB / 0.5995 GB, free: 8.793 MB / 394.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.009183/0.6625, allocations: 5.651 MB / 0.6051 GB, free: 3.137 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.6626, allocations: 4 kB / 0.6051 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.721e-05/0.6626, allocations: 96 kB / 0.6052 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.6649, allocations: 0.7932 MB / 0.6059 GB, free: 2.242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002714/0.6676, allocations: 0.9747 MB / 0.6069 GB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005112/0.6727, allocations: 4.221 MB / 0.611 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/0.6753, allocations: 179.6 kB / 0.6112 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003167/0.6756, allocations: 272 kB / 0.6114 GB, free: 12.49 MB / 410.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.000418/0.676, allocations: 336.1 kB / 0.6118 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002918/0.6763, allocations: 209.3 kB / 0.612 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004603/0.681, allocations: 2.202 MB / 0.6141 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.628e-05/0.681, allocations: 8 kB / 0.6141 GB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.681, allocations: 4 kB / 0.6141 GB, free: 9.727 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.681, allocations: 3.984 kB / 0.6141 GB, free: 9.723 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008927/0.69, allocations: 5.124 MB / 0.6191 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.69, allocations: 4.094 kB / 0.6191 GB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007212/0.6907, allocations: 159.7 kB / 0.6193 GB, free: 4.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/0.6928, allocations: 0.6211 MB / 0.6199 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.434e-05/0.6928, allocations: 7.984 kB / 0.6199 GB, free: 3.738 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004403/0.6973, allocations: 3.673 MB / 0.6235 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.6973, allocations: 9.969 kB / 0.6235 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006389/0.7037, allocations: 4.39 MB / 0.6278 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007774/0.7115, allocations: 6.082 MB / 0.6337 GB, free: 5.266 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/0.7118, allocations: 274.1 kB / 0.634 GB, free: 4.977 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002748/0.7121, allocations: 11.94 kB / 0.634 GB, free: 4.965 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009546/0.7131, allocations: 48 kB / 0.634 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.7132, allocations: 44.36 kB / 0.6341 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.261e-05/0.7133, allocations: 36 kB / 0.6341 GB, free: 4.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001669/0.715, allocations: 1.391 MB / 0.6355 GB, free: 3.434 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003305/0.7183, allocations: 0.5975 MB / 0.6361 GB, free: 2.836 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.0003589/0.7187, allocations: 178.9 kB / 0.6362 GB, free: 2.656 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004097/0.7228, allocations: 3.406 MB / 0.6396 GB, free: 15.26 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7228, allocations: 0 / 0.6396 GB, free: 15.26 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.724, allocations: 1.058 MB / 0.6406 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008507/0.7249, allocations: 197.9 kB / 0.6408 GB, free: 14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006722/0.7316, allocations: 4.693 MB / 0.6454 GB, free: 9.215 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002455/0.7341, allocations: 2.468 MB / 0.6478 GB, free: 6.719 MB / 442.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7341, allocations: 4 kB / 0.6478 GB, free: 6.715 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)