Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",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.0009981/0.0009981, allocations: 180.9 kB / 8.475 MB, free: 1.871 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.134/1.134, allocations: 205.2 MB / 214.1 MB, free: 5.102 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.0008466/0.0008466, allocations: 87.67 kB / 262.1 MB, free: 5.152 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1606/0.1615, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06392/0.2254, allocations: 47.58 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.4501, allocations: 102.4 MB / 465 MB, free: 5.023 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.4503, allocations: 89.06 kB / 465.1 MB, free: 5.008 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.4954/0.9457, allocations: 138.8 MB / 0.5897 GB, free: 71.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.9458, allocations: 10.72 kB / 0.5897 GB, free: 71.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02873/0.9745, allocations: 6.99 MB / 0.5966 GB, free: 70.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0229/0.9975, allocations: 9.756 MB / 0.6061 GB, free: 69.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000343/0.9979, allocations: 214.7 kB / 0.6063 GB, free: 69.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002807/1.001, allocations: 395.4 kB / 0.6067 GB, free: 69.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0164/1.017, allocations: 10.08 MB / 0.6165 GB, free: 69.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/1.044, allocations: 14.62 MB / 0.6308 GB, free: 64.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004682/1.044, allocations: 100.9 kB / 0.6309 GB, free: 64.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001957/1.046, allocations: 43.19 kB / 0.6309 GB, free: 64.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002538/1.049, allocations: 1.702 MB / 0.6326 GB, free: 63.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07625/1.125, allocations: 76 MB / 0.7068 GB, free: 9.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007084/1.132, allocations: 5.348 MB / 0.712 GB, free: 4.613 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005843/1.138, allocations: 4.34 MB / 0.7163 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1397/1.278, allocations: 14.33 MB / 0.7303 GB, free: 117.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/1.278, allocations: 59.19 kB / 0.7303 GB, free: 117.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 6.052e-06/1.278, allocations: 1.844 kB / 0.7303 GB, free: 117.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=369): time 0.09031/1.368, allocations: 38.64 MB / 0.7681 GB, free: 113.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/1.368, allocations: 267.9 kB / 0.7683 GB, free: 113.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00585/1.374, allocations: 4.762 MB / 0.773 GB, free: 111.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005206/1.375, allocations: 29.67 kB / 0.773 GB, free: 111.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/1.376, allocations: 4.32 MB / 0.7772 GB, free: 108.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001071/1.378, allocations: 1.308 MB / 0.7785 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003878/1.378, allocations: 0 / 0.7785 GB, free: 107.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003352/1.378, allocations: 0.7071 MB / 0.7792 GB, free: 106.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004121/1.382, allocations: 3.68 MB / 0.7828 GB, free: 105.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006099/1.389, allocations: 9.023 MB / 0.7916 GB, free: 97.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008066/1.397, allocations: 6.024 MB / 0.7975 GB, free: 95.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.224e-05/1.397, allocations: 54.59 kB / 0.7975 GB, free: 95.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.03074/1.427, allocations: 15.13 MB / 0.8123 GB, free: 87.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/1.428, allocations: 8 kB / 0.8123 GB, free: 87.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001716/1.428, allocations: 192 kB / 0.8125 GB, free: 87.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0124/1.44, allocations: 3.787 MB / 0.8162 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007103/1.447, allocations: 2.081 MB / 0.8182 GB, free: 82.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02871/1.476, allocations: 19.93 MB / 0.8377 GB, free: 65.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007336/1.483, allocations: 335.3 kB / 0.838 GB, free: 65.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009301/1.484, allocations: 0.5463 MB / 0.8385 GB, free: 65.06 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (1120): * Single equations (assignments): 1115 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00115/1.485, allocations: 0.5847 MB / 0.8391 GB, free: 64.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000832/1.486, allocations: 0.5399 MB / 0.8396 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01955/1.506, allocations: 9.464 MB / 0.8489 GB, free: 56.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.696e-05/1.506, allocations: 36 kB / 0.8489 GB, free: 56.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/1.506, allocations: 16 kB / 0.8489 GB, free: 56.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.746e-05/1.506, allocations: 18.66 kB / 0.849 GB, free: 56.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03475/1.541, allocations: 17.97 MB / 0.8665 GB, free: 39.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/1.541, allocations: 7.938 kB / 0.8665 GB, free: 39.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002839/1.544, allocations: 479.3 kB / 0.867 GB, free: 38.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01209/1.556, allocations: 3.405 MB / 0.8703 GB, free: 35.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004766/1.556, allocations: 7.984 kB / 0.8703 GB, free: 35.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1417/1.698, allocations: 18.39 MB / 0.8883 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.698, allocations: 5.828 kB / 0.8883 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02567/1.724, allocations: 14.25 MB / 0.9022 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02959/1.753, allocations: 19.07 MB / 0.9208 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002703/1.756, allocations: 1.095 MB / 0.9219 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/1.757, allocations: 0 / 0.9219 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/1.76, allocations: 111.9 kB / 0.922 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/1.761, allocations: 173.3 kB / 0.9221 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00031/1.761, allocations: 98 kB / 0.9222 GB, free: 102.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004524/1.765, allocations: 3.215 MB / 0.9254 GB, free: 101.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008645/1.774, allocations: 1.581 MB / 0.9269 GB, free: 101.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 260 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006998/1.775, allocations: 188.3 kB / 0.9271 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01219/1.787, allocations: 9.214 MB / 0.9361 GB, free: 98.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/1.787, allocations: 3.844 kB / 0.9361 GB, free: 98.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005114/1.792, allocations: 3.59 MB / 0.9396 GB, free: 97.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/1.795, allocations: 0.5692 MB / 0.9402 GB, free: 97.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02358/1.819, allocations: 13.41 MB / 0.9532 GB, free: 92.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006715/1.826, allocations: 5.4 MB / 0.9585 GB, free: 88.53 MB / 426.7 MB Notification: Performance of SimCode: time 2.044e-06/1.826, allocations: 0 / 0.9585 GB, free: 88.53 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)