Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.326/1.326, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0009445/0.0009445, allocations: 99.28 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0893/0.09027, allocations: 55.83 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.2622, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.3633, allocations: 104.1 MB / 491.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.3636, allocations: 87.89 kB / 491.2 MB, free: 14.52 MB / 378.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.4684/0.832, allocations: 140.3 MB / 0.6167 GB, free: 6.895 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.8321, allocations: 11.94 kB / 0.6167 GB, free: 6.883 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03035/0.8625, allocations: 6.986 MB / 0.6235 GB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02351/0.886, allocations: 9.13 MB / 0.6324 GB, free: 6.656 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003154/0.8864, allocations: 208 kB / 0.6326 GB, free: 6.453 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002439/0.8888, allocations: 399.7 kB / 0.633 GB, free: 6.062 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01691/0.9057, allocations: 10.08 MB / 0.6429 GB, free: 11.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1409/1.047, allocations: 14.62 MB / 0.6571 GB, free: 90.67 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002814/1.047, allocations: 103.9 kB / 0.6572 GB, free: 90.67 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008546/1.048, allocations: 44.59 kB / 0.6573 GB, free: 90.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/1.05, allocations: 1.706 MB / 0.659 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06731/1.117, allocations: 75.9 MB / 0.7331 GB, free: 47.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005671/1.123, allocations: 5.343 MB / 0.7383 GB, free: 46.99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004508/1.127, allocations: 4.345 MB / 0.7425 GB, free: 46.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01804/1.145, allocations: 14.28 MB / 0.7565 GB, free: 38.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/1.145, allocations: 66.09 kB / 0.7565 GB, free: 38.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 5.31e-06/1.145, allocations: 0 / 0.7565 GB, free: 38.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=369): time 0.09245/1.238, allocations: 38.4 MB / 0.794 GB, free: 25.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/1.238, allocations: 271.7 kB / 0.7943 GB, free: 25.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006998/1.245, allocations: 4.707 MB / 0.7989 GB, free: 23.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008633/1.246, allocations: 25.7 kB / 0.7989 GB, free: 23.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002584/1.249, allocations: 4.317 MB / 0.8031 GB, free: 20.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001523/1.25, allocations: 1.314 MB / 0.8044 GB, free: 18.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005257/1.251, allocations: 0 / 0.8044 GB, free: 18.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004384/1.251, allocations: 0.7072 MB / 0.8051 GB, free: 18.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004499/1.256, allocations: 3.682 MB / 0.8087 GB, free: 14.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006022/1.262, allocations: 9.033 MB / 0.8175 GB, free: 3.984 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1278/1.389, allocations: 6.155 MB / 0.8235 GB, free: 89.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/1.39, allocations: 54.59 kB / 0.8236 GB, free: 89.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.0309/1.421, allocations: 15.12 MB / 0.8383 GB, free: 89.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/1.421, allocations: 2.844 kB / 0.8384 GB, free: 89.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001746/1.421, allocations: 191.3 kB / 0.8385 GB, free: 89.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01353/1.434, allocations: 3.799 MB / 0.8422 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007397/1.442, allocations: 2.076 MB / 0.8443 GB, free: 88.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03041/1.472, allocations: 19.92 MB / 0.8637 GB, free: 86.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007635/1.48, allocations: 334.1 kB / 0.864 GB, free: 86.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/1.481, allocations: 0.5504 MB / 0.8646 GB, free: 86.25 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.001337/1.483, allocations: 0.577 MB / 0.8651 GB, free: 85.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009455/1.483, allocations: 0.5416 MB / 0.8657 GB, free: 85.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02076/1.504, allocations: 9.475 MB / 0.8749 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.447e-05/1.504, allocations: 37.81 kB / 0.875 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.683e-05/1.504, allocations: 16.41 kB / 0.875 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.817e-05/1.504, allocations: 17.38 kB / 0.875 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03869/1.543, allocations: 17.95 MB / 0.8925 GB, free: 83.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-05/1.543, allocations: 7.25 kB / 0.8925 GB, free: 83.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002866/1.546, allocations: 489.8 kB / 0.893 GB, free: 82.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0124/1.558, allocations: 3.407 MB / 0.8963 GB, free: 82.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005695/1.559, allocations: 14.59 kB / 0.8963 GB, free: 82.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02819/1.587, allocations: 18.38 MB / 0.9143 GB, free: 72.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.587, allocations: 2.266 kB / 0.9143 GB, free: 72.87 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02585/1.613, allocations: 14.25 MB / 0.9282 GB, free: 60.94 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02955/1.643, allocations: 19.06 MB / 0.9468 GB, free: 44.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/1.644, allocations: 0.5384 MB / 0.9473 GB, free: 44.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001185/1.645, allocations: 4 kB / 0.9473 GB, free: 44.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003037/1.648, allocations: 114.2 kB / 0.9475 GB, free: 44.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004788/1.649, allocations: 173.4 kB / 0.9476 GB, free: 43.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003065/1.649, allocations: 98.09 kB / 0.9477 GB, free: 43.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004191/1.653, allocations: 3.178 MB / 0.9508 GB, free: 41.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007936/1.661, allocations: 1.576 MB / 0.9524 GB, free: 39.54 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.0006369/1.662, allocations: 194.2 kB / 0.9525 GB, free: 39.37 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01201/1.674, allocations: 9.205 MB / 0.9615 GB, free: 31.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.864e-06/1.674, allocations: 4 kB / 0.9615 GB, free: 31.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1254/1.8, allocations: 3.743 MB / 0.9652 GB, free: 92.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0031/1.803, allocations: 0.5622 MB / 0.9657 GB, free: 92.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02363/1.826, allocations: 13.37 MB / 0.9788 GB, free: 90.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006962/1.833, allocations: 5.379 MB / 0.984 GB, free: 89.16 MB / 426.7 MB Notification: Performance of SimCode: time 7.91e-07/1.833, allocations: 0 / 0.984 GB, free: 89.16 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)