Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies",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 trunk/package.mo): time 0.001056/0.001055, allocations: 195.6 kB / 8.535 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009042/0.0009043, allocations: 93.58 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1692/0.1692, allocations: 45.14 MB / 383.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1784/0.3477, allocations: 69.36 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07675/0.4244, allocations: 63.25 MB / 0.5039 GB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2471/0.6715, allocations: 103.6 MB / 0.6051 GB, free: 15.47 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.6718, allocations: 75.78 kB / 0.6051 GB, free: 15.43 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1498 * Number of variables: 1498 Notification: Performance of Generate backend data structure: time 0.2978/0.9696, allocations: 113.4 MB / 0.7159 GB, free: 6.176 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.9696, allocations: 12 kB / 0.7159 GB, free: 6.164 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/0.9989, allocations: 7.009 MB / 0.7228 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04809/1.047, allocations: 20.22 MB / 0.7425 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/1.047, allocations: 132 kB / 0.7426 GB, free: 10.67 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000904/1.048, allocations: 267.7 kB / 0.7429 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009448/1.058, allocations: 6.548 MB / 0.7493 GB, free: 3.855 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1368/1.194, allocations: 9.878 MB / 0.7589 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/1.195, allocations: 82.58 kB / 0.759 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004771/1.195, allocations: 33.72 kB / 0.759 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001293/1.196, allocations: 1.147 MB / 0.7602 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0408/1.237, allocations: 51.32 MB / 0.8103 GB, free: 155.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00356/1.241, allocations: 3.6 MB / 0.8138 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002344/1.243, allocations: 2.519 MB / 0.8163 GB, free: 154.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/1.254, allocations: 9.237 MB / 0.8253 GB, free: 149.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/1.255, allocations: 61.34 kB / 0.8253 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=182): time 4.198e-06/1.255, allocations: 0 / 0.8253 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=210): time 0.03434/1.289, allocations: 18.66 MB / 0.8436 GB, free: 140.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/1.289, allocations: 331.2 kB / 0.8439 GB, free: 140.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004496/1.293, allocations: 3.958 MB / 0.8477 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002416/1.294, allocations: 25.7 kB / 0.8478 GB, free: 138.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001095/1.295, allocations: 3.124 MB / 0.8508 GB, free: 136.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008214/1.296, allocations: 0.872 MB / 0.8517 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/1.296, allocations: 0 / 0.8517 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002692/1.296, allocations: 0.6203 MB / 0.8523 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/1.3, allocations: 3.006 MB / 0.8552 GB, free: 134.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00444/1.304, allocations: 7.408 MB / 0.8624 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005788/1.31, allocations: 4.802 MB / 0.8671 GB, free: 126 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-05/1.31, allocations: 49.22 kB / 0.8672 GB, free: 126 MB / 0.5261 GB Notification: Performance of matching and sorting (n=967) (initialization): time 0.04216/1.352, allocations: 13.66 MB / 0.8805 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.352, allocations: 8 kB / 0.8805 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0323/1.384, allocations: 7.611 MB / 0.888 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03624/1.421, allocations: 5.096 MB / 0.8929 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005208/1.426, allocations: 1.7 MB / 0.8946 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01819/1.444, allocations: 14.2 MB / 0.9085 GB, free: 92.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006891/1.451, allocations: 483 kB / 0.9089 GB, free: 91.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009793/1.452, allocations: 477.4 kB / 0.9094 GB, free: 91.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * Number of states: 0 () * Number of discrete variables: 39 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (891): * Single equations (assignments): 866 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001112/1.453, allocations: 0.4961 MB / 0.9099 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007997/1.454, allocations: 422.5 kB / 0.9103 GB, free: 90.31 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001123/1.455, allocations: 0.5842 MB / 0.9108 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01391/1.469, allocations: 5.592 MB / 0.9163 GB, free: 84.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/1.469, allocations: 8 kB / 0.9163 GB, free: 84.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/1.469, allocations: 7.969 kB / 0.9163 GB, free: 84.08 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01474/1.484, allocations: 9.104 MB / 0.9252 GB, free: 74.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/1.484, allocations: 4 kB / 0.9252 GB, free: 74.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00216/1.486, allocations: 387.5 kB / 0.9256 GB, free: 74.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01248/1.498, allocations: 3.266 MB / 0.9288 GB, free: 71.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000268/1.499, allocations: 71.84 kB / 0.9288 GB, free: 71.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/1.511, allocations: 14.43 MB / 0.9429 GB, free: 55.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002293/1.514, allocations: 5.476 MB / 0.9483 GB, free: 49.98 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01775/1.531, allocations: 10.33 MB / 0.9584 GB, free: 39.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02037/1.552, allocations: 13.53 MB / 0.9716 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008833/1.553, allocations: 0.4916 MB / 0.9721 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006884/1.553, allocations: 43.97 kB / 0.9721 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002818/1.556, allocations: 191.7 kB / 0.9723 GB, free: 25.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/1.557, allocations: 107.7 kB / 0.9724 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002408/1.557, allocations: 75.94 kB / 0.9725 GB, free: 24.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003266/1.56, allocations: 2.702 MB / 0.9751 GB, free: 22.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006271/1.566, allocations: 1.544 MB / 0.9766 GB, free: 20.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004811/1.567, allocations: 210.4 kB / 0.9768 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01336/1.58, allocations: 8.922 MB / 0.9855 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.58, allocations: 0 / 0.9855 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007262/1.588, allocations: 4.429 MB / 0.9898 GB, free: 6.648 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/1.59, allocations: 0.5306 MB / 0.9904 GB, free: 6.133 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1443/1.734, allocations: 12.23 MB / 1.002 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00425/1.739, allocations: 4.241 MB / 1.006 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of SimCode: time 5.61e-07/1.739, allocations: 0 / 1.006 GB, free: 170.6 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_InitializationConversion_Bodies.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.InitializationConversion.Bodies.pipe 2>&1)