Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json 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/Complex 4.0.0+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/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 191.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3835/0.3835, allocations: 37.99 MB / 307.7 MB, free: 10.03 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 80.52 kB / 375.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1698, allocations: 56.46 MB / 431.7 MB, free: 6.668 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01863/0.1885, allocations: 15.24 MB / 446.9 MB, free: 7.355 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01448/0.2031, allocations: 5.067 MB / 452 MB, free: 2.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004438/0.2076, allocations: 103.7 kB / 452.1 MB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3526/0.5603, allocations: 4.175 MB / 456.3 MB, free: 35.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009481/0.5698, allocations: 2.427 MB / 458.7 MB, free: 35.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003521/0.5734, allocations: 1.091 MB / 459.8 MB, free: 35.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01512/0.5885, allocations: 6.845 MB / 466.6 MB, free: 35.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007944/0.5965, allocations: 5.226 MB / 471.9 MB, free: 33.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006406/0.603, allocations: 2.299 MB / 474.2 MB, free: 32.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006215/0.6092, allocations: 3.16 MB / 477.3 MB, free: 31.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002114/0.6114, allocations: 0.5032 MB / 477.8 MB, free: 31.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003877/0.6153, allocations: 1.387 MB / 479.2 MB, free: 31.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003287/0.6186, allocations: 2.845 MB / 482.1 MB, free: 30.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007038/0.6256, allocations: 3.256 MB / 485.3 MB, free: 28.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.023/0.6487, allocations: 9.895 MB / 495.2 MB, free: 25.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-05/0.6487, allocations: 5.469 kB / 495.2 MB, free: 25 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.69e-06/0.6488, allocations: 0 / 495.2 MB, free: 25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006777/0.6494, allocations: 0 / 495.2 MB, free: 25 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.03737/0.6868, allocations: 7.048 MB / 0.4905 GB, free: 21.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.831e-05/0.6869, allocations: 13.55 kB / 0.4905 GB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03152/0.7184, allocations: 3.363 MB / 0.4938 GB, free: 19.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/0.7333, allocations: 4.572 MB / 0.4983 GB, free: 17.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003939/0.7338, allocations: 338.1 kB / 0.4986 GB, free: 16.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/0.7365, allocations: 462 kB / 0.499 GB, free: 16.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03356/0.77, allocations: 13.58 MB / 0.5123 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003297/0.7704, allocations: 67.44 kB / 0.5124 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008265/0.7713, allocations: 209.8 kB / 0.5126 GB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004459/0.7758, allocations: 2.653 MB / 0.5151 GB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02871/0.8045, allocations: 11.83 MB / 0.5267 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09545/0.9, allocations: 54.33 MB / 0.5797 GB, free: 60 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01556/0.9156, allocations: 5.777 MB / 0.5854 GB, free: 10.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006749/0.9224, allocations: 3.548 MB / 0.5888 GB, free: 6.586 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001249/0.9237, allocations: 0.6944 MB / 0.5895 GB, free: 5.797 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001/0.9238, allocations: 64.56 kB / 0.5896 GB, free: 5.727 MB / 462.1 MB Notification: Performance of pre-optimization done (n=254): time 1.284e-05/0.9238, allocations: 0 / 0.5896 GB, free: 5.727 MB / 462.1 MB Notification: Performance of matching and sorting (n=324): time 0.1233/1.047, allocations: 37.24 MB / 0.626 GB, free: 376 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001767/1.047, allocations: 265.4 kB / 0.6262 GB, free: 52 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3604/1.408, allocations: 5.314 MB / 0.6314 GB, free: 148.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001276/1.409, allocations: 78.52 kB / 0.6315 GB, free: 148.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003107/1.412, allocations: 3.994 MB / 0.6354 GB, free: 145.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002069/1.414, allocations: 1.207 MB / 0.6366 GB, free: 145 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002622/1.417, allocations: 1.634 MB / 0.6382 GB, free: 144.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.692e-05/1.417, allocations: 308.1 kB / 0.6384 GB, free: 143.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005287/1.422, allocations: 3.689 MB / 0.642 GB, free: 142.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00865/1.431, allocations: 7.983 MB / 0.6498 GB, free: 135.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01675/1.448, allocations: 12.49 MB / 0.662 GB, free: 126.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002783/1.448, allocations: 42.25 kB / 0.6621 GB, free: 126.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.0356/1.484, allocations: 13.98 MB / 0.6757 GB, free: 121.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002312/1.484, allocations: 66.75 kB / 0.6758 GB, free: 121.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004397/1.484, allocations: 145.3 kB / 0.6759 GB, free: 121.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009494/1.494, allocations: 2.77 MB / 0.6786 GB, free: 120.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007863/1.502, allocations: 1.826 MB / 0.6804 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02102/1.523, allocations: 17.82 MB / 0.6978 GB, free: 109.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009396/1.532, allocations: 483.3 kB / 0.6983 GB, free: 109.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001953/1.534, allocations: 464.1 kB / 0.6987 GB, free: 109 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 42 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (973): * Single equations (assignments): 968 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (4,23,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005838/1.54, allocations: 2.826 MB / 0.7015 GB, free: 106.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/1.542, allocations: 497.6 kB / 0.702 GB, free: 106 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01245/1.554, allocations: 8.175 MB / 0.71 GB, free: 98.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.757e-05/1.554, allocations: 36 kB / 0.71 GB, free: 98.51 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/1.554, allocations: 8.656 kB / 0.71 GB, free: 98.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.478e-05/1.554, allocations: 19.94 kB / 0.71 GB, free: 98.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04951/1.604, allocations: 17.41 MB / 0.727 GB, free: 81.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.063e-05/1.604, allocations: 8 kB / 0.727 GB, free: 81.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004213/1.608, allocations: 0.5109 MB / 0.7275 GB, free: 80.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009203/1.617, allocations: 2.495 MB / 0.73 GB, free: 78.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001123/1.618, allocations: 67.98 kB / 0.73 GB, free: 77.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0237/1.642, allocations: 15.83 MB / 0.7455 GB, free: 61.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/1.642, allocations: 11.88 kB / 0.7455 GB, free: 61.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0269/1.669, allocations: 12.76 MB / 0.7579 GB, free: 48.88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004625/1.674, allocations: 1.112 MB / 0.759 GB, free: 47.74 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001848/1.676, allocations: 56 kB / 0.7591 GB, free: 47.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002861/1.678, allocations: 231.6 kB / 0.7593 GB, free: 47.46 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006812/1.679, allocations: 217.5 kB / 0.7595 GB, free: 47.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000242/1.679, allocations: 91.98 kB / 0.7596 GB, free: 47.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005062/1.684, allocations: 3.358 MB / 0.7629 GB, free: 43.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.685, allocations: 0 / 0.7629 GB, free: 43.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007995/1.693, allocations: 1.592 MB / 0.7644 GB, free: 42.23 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006181/1.693, allocations: 208.1 kB / 0.7646 GB, free: 42.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01986/1.713, allocations: 12.88 MB / 0.7772 GB, free: 29.17 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/1.713, allocations: 0 / 0.7772 GB, free: 29.17 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004731/1.718, allocations: 3.565 MB / 0.7807 GB, free: 25.58 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007636/1.725, allocations: 0.6894 MB / 0.7814 GB, free: 24.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02881/1.754, allocations: 15.12 MB / 0.7961 GB, free: 9.699 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004606/1.759, allocations: 4.409 MB / 0.8004 GB, free: 5.246 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006633/1.766, allocations: 2.509 MB / 0.8029 GB, free: 2.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/1.767, allocations: 359.3 kB / 0.8032 GB, free: 2.379 MB / 494.1 MB Notification: Performance of SimCode: time 1.393e-06/1.767, allocations: 7.938 kB / 0.8032 GB, free: 2.371 MB / 494.1 MB Notification: Performance of Templates: time 0.4236/2.191, allocations: 70.18 MB / 0.8718 GB, free: 122.2 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)