Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies",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.00112/0.00112, allocations: 183.8 kB / 8.518 MB, free: 496 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 221.4 MB / 230.3 MB, free: 13.56 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 99.22 kB / 281.2 MB, free: 10.6 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1697/0.1697, allocations: 44.14 MB / 376.1 MB, free: 11.75 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1692/0.3389, allocations: 68.03 MB / 444.1 MB, free: 54.32 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.4189, allocations: 61.91 MB / 0.4942 GB, free: 8.344 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2657/0.6846, allocations: 107.9 MB / 0.5996 GB, free: 6.73 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.6849, allocations: 80.75 kB / 0.5997 GB, free: 6.652 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.5619/1.247, allocations: 151.4 MB / 0.7475 GB, free: 103.8 MB / 0.5027 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/1.247, allocations: 10.75 kB / 0.7475 GB, free: 103.8 MB / 0.5027 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/1.278, allocations: 7.215 MB / 0.7546 GB, free: 103.3 MB / 0.5027 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02465/1.303, allocations: 10.46 MB / 0.7648 GB, free: 102.2 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002876/1.303, allocations: 253.3 kB / 0.765 GB, free: 102.2 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002383/1.305, allocations: 472.9 kB / 0.7655 GB, free: 102.2 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01865/1.324, allocations: 10.93 MB / 0.7761 GB, free: 99.04 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02724/1.351, allocations: 16.08 MB / 0.7918 GB, free: 89.37 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003041/1.352, allocations: 109.6 kB / 0.792 GB, free: 89.27 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/1.353, allocations: 56.45 kB / 0.792 GB, free: 89.21 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002322/1.355, allocations: 1.813 MB / 0.7938 GB, free: 87.72 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07778/1.433, allocations: 81.67 MB / 0.8735 GB, free: 6.418 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005255/1.438, allocations: 4.808 MB / 0.8782 GB, free: 1.473 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004351/1.442, allocations: 3.812 MB / 0.882 GB, free: 13.64 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2713/1.714, allocations: 13.13 MB / 0.8948 GB, free: 170.5 MB / 0.5184 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/1.714, allocations: 68.05 kB / 0.8948 GB, free: 170.5 MB / 0.5184 GB Notification: Performance of pre-optimization done (n=301): time 6.211e-06/1.714, allocations: 0 / 0.8948 GB, free: 170.5 MB / 0.5184 GB Notification: Performance of matching and sorting (n=329): time 0.05168/1.766, allocations: 22.79 MB / 0.9171 GB, free: 166.7 MB / 0.5184 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/1.766, allocations: 241.4 kB / 0.9173 GB, free: 166.4 MB / 0.5184 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006601/1.772, allocations: 5.183 MB / 0.9224 GB, free: 165.9 MB / 0.5184 GB Notification: Performance of collectPreVariables (initialization): time 0.000579/1.773, allocations: 29.52 kB / 0.9224 GB, free: 165.9 MB / 0.5184 GB Notification: Performance of collectInitialEqns (initialization): time 0.002056/1.775, allocations: 4.833 MB / 0.9271 GB, free: 163 MB / 0.5184 GB Notification: Performance of collectInitialBindings (initialization): time 0.001334/1.776, allocations: 1.283 MB / 0.9284 GB, free: 162.3 MB / 0.5184 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004361/1.777, allocations: 1.25 kB / 0.9284 GB, free: 162.3 MB / 0.5184 GB Notification: Performance of setup shared object (initialization): time 0.0004161/1.777, allocations: 0.7435 MB / 0.9291 GB, free: 162 MB / 0.5184 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004659/1.782, allocations: 3.883 MB / 0.9329 GB, free: 161.9 MB / 0.5184 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006194/1.788, allocations: 9.796 MB / 0.9425 GB, free: 154.3 MB / 0.5184 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007476/1.795, allocations: 6.258 MB / 0.9486 GB, free: 153.5 MB / 0.5184 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.484e-05/1.796, allocations: 59.81 kB / 0.9486 GB, free: 153.5 MB / 0.5184 GB Notification: Performance of matching and sorting (n=1340) (initialization): time 0.0316/1.827, allocations: 15.19 MB / 0.9635 GB, free: 149.3 MB / 0.5184 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/1.827, allocations: 4.844 kB / 0.9635 GB, free: 149.3 MB / 0.5184 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02047/1.848, allocations: 7.707 MB / 0.971 GB, free: 147.1 MB / 0.5184 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01739/1.865, allocations: 3.445 MB / 0.9744 GB, free: 146.5 MB / 0.5184 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008512/1.874, allocations: 2.382 MB / 0.9767 GB, free: 145.4 MB / 0.5184 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/1.886, allocations: 12.67 MB / 0.9891 GB, free: 133.3 MB / 0.5184 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009441/1.896, allocations: 0.5173 MB / 0.9896 GB, free: 132.9 MB / 0.5184 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002106/1.898, allocations: 0.6198 MB / 0.9902 GB, free: 132.3 MB / 0.5184 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1264): * Single equations (assignments): 1239 * 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%),(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: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001727/1.9, allocations: 0.6484 MB / 0.9908 GB, free: 131.7 MB / 0.5184 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001185/1.901, allocations: 0.567 MB / 0.9914 GB, free: 131.1 MB / 0.5184 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01512/1.916, allocations: 7.716 MB / 0.9989 GB, free: 124.9 MB / 0.5184 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01309/1.929, allocations: 6.908 MB / 1.006 GB, free: 119.3 MB / 0.5184 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.123e-05/1.929, allocations: 8 kB / 1.006 GB, free: 119.3 MB / 0.5184 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-05/1.929, allocations: 14.11 kB / 1.006 GB, free: 119.3 MB / 0.5184 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03148/1.961, allocations: 18.22 MB / 1.023 GB, free: 105 MB / 0.5184 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/1.961, allocations: 4 kB / 1.023 GB, free: 105 MB / 0.5184 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003601/1.964, allocations: 0.627 MB / 1.024 GB, free: 104.5 MB / 0.5184 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009672/1.974, allocations: 2.953 MB / 1.027 GB, free: 102.4 MB / 0.5184 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000465/1.974, allocations: 76.36 kB / 1.027 GB, free: 102.4 MB / 0.5184 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/1.988, allocations: 13.49 MB / 1.04 GB, free: 89.79 MB / 0.5184 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002542/1.99, allocations: 5.651 MB / 1.046 GB, free: 83.81 MB / 0.5184 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01864/2.009, allocations: 12.77 MB / 1.058 GB, free: 71.11 MB / 0.5184 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02193/2.031, allocations: 17.03 MB / 1.075 GB, free: 53.74 MB / 0.5184 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/2.032, allocations: 0.6108 MB / 1.075 GB, free: 53.1 MB / 0.5184 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/2.033, allocations: 35.97 kB / 1.075 GB, free: 53.07 MB / 0.5184 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003366/2.037, allocations: 219.6 kB / 1.076 GB, free: 52.85 MB / 0.5184 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004866/2.037, allocations: 177.6 kB / 1.076 GB, free: 52.68 MB / 0.5184 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002969/2.038, allocations: 107.9 kB / 1.076 GB, free: 52.57 MB / 0.5184 GB Notification: Performance of sort global known variables: time 0.004807/2.042, allocations: 3.489 MB / 1.079 GB, free: 49.09 MB / 0.5184 GB Notification: Performance of remove unused functions: time 0.008956/2.051, allocations: 1.932 MB / 1.081 GB, free: 47.16 MB / 0.5184 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.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],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 252 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,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 Backend phase and start with SimCode phase: time 0.0006381/2.052, allocations: 221.8 kB / 1.081 GB, free: 46.96 MB / 0.5184 GB Notification: Performance of simCode: created initialization part: time 0.01671/2.069, allocations: 11.16 MB / 1.092 GB, free: 35.59 MB / 0.5184 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/2.069, allocations: 1.062 kB / 1.092 GB, free: 35.59 MB / 0.5184 GB Notification: Performance of simCode: created simulation system equations: time 0.008742/2.078, allocations: 5.224 MB / 1.097 GB, free: 30.12 MB / 0.5184 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003733/2.081, allocations: 0.712 MB / 1.098 GB, free: 29.44 MB / 0.5184 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1736/2.255, allocations: 16.99 MB / 1.115 GB, free: 153.1 MB / 0.5184 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008208/2.263, allocations: 6.159 MB / 1.121 GB, free: 152.2 MB / 0.5184 GB Notification: Performance of SimCode: time 1.012e-06/2.263, allocations: 0 / 1.121 GB, free: 152.2 MB / 0.5184 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FreeBodies.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FreeBodies.pipe 2>&1)