Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 191.1 kB / 16.25 MB, free: 6.629 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.593/1.593, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.3989/0.3989, allocations: 37.98 MB / 307.4 MB, free: 10.18 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.001403/0.001403, allocations: 70.97 kB / 374.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1435, allocations: 56.47 MB / 431.2 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.2794/0.4229, allocations: 34.06 MB / 465.3 MB, free: 34.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01662/0.4396, allocations: 7.614 MB / 472.9 MB, free: 32.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008877/0.4486, allocations: 140.8 kB / 473 MB, free: 32.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003906/0.4526, allocations: 1.778 MB / 474.8 MB, free: 32.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004769/0.4574, allocations: 1.747 MB / 476.6 MB, free: 31.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.4586, allocations: 484.4 kB / 477 MB, free: 31.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004435/0.4631, allocations: 3.941 MB / 481 MB, free: 29.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003081/0.4662, allocations: 3.029 MB / 484 MB, free: 28.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001814/0.468, allocations: 1.409 MB / 485.4 MB, free: 27.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002085/0.4701, allocations: 2.165 MB / 487.6 MB, free: 27.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004738/0.4706, allocations: 302.2 kB / 487.9 MB, free: 27.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001998/0.4726, allocations: 1.161 MB / 489 MB, free: 26.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001341/0.474, allocations: 1.888 MB / 490.9 MB, free: 26.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.4759, allocations: 2.226 MB / 493.1 MB, free: 24.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.4862, allocations: 7.133 MB / 0.4885 GB, free: 21.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.4863, allocations: 4 kB / 0.4885 GB, free: 21.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4863, allocations: 0 / 0.4885 GB, free: 21.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003576/0.4866, allocations: 1.469 kB / 0.4886 GB, free: 21.98 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: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.01823/0.5049, allocations: 4.934 MB / 0.4934 GB, free: 19.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.505, allocations: 12.77 kB / 0.4934 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01214/0.5171, allocations: 3.141 MB / 0.4964 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006161/0.5233, allocations: 2.173 MB / 0.4986 GB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002339/0.5236, allocations: 225.9 kB / 0.4988 GB, free: 17.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/0.5249, allocations: 292.3 kB / 0.4991 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02319/0.5481, allocations: 11.91 MB / 0.5107 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001129/0.5483, allocations: 30.14 kB / 0.5107 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004954/0.5488, allocations: 136.3 kB / 0.5109 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004062/0.5529, allocations: 2.711 MB / 0.5135 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02255/0.5755, allocations: 11.09 MB / 0.5243 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06251/0.6381, allocations: 37.13 MB / 0.5606 GB, free: 7.344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009124/0.6472, allocations: 4.701 MB / 0.5652 GB, free: 2.418 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003483/0.6508, allocations: 2.246 MB / 0.5674 GB, free: 176 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001262/0.6521, allocations: 1.323 MB / 0.5687 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.413e-05/0.6521, allocations: 60.59 kB / 0.5687 GB, free: 14.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=244): time 7.554e-06/0.6522, allocations: 0 / 0.5687 GB, free: 14.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.03909/0.6913, allocations: 13.53 MB / 0.5819 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/0.6914, allocations: 81.34 kB / 0.582 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003975/0.6954, allocations: 2.836 MB / 0.5848 GB, free: 14.01 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004759/0.6959, allocations: 57.7 kB / 0.5848 GB, free: 13.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002018/0.6979, allocations: 2.965 MB / 0.5877 GB, free: 10.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001236/0.6991, allocations: 0.9404 MB / 0.5887 GB, free: 9.988 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001662/0.7008, allocations: 1.151 MB / 0.5898 GB, free: 8.824 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.7009, allocations: 309 kB / 0.5901 GB, free: 8.52 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003263/0.7042, allocations: 2.315 MB / 0.5923 GB, free: 6.199 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005225/0.7095, allocations: 5.478 MB / 0.5977 GB, free: 15.18 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/0.7197, allocations: 8.543 MB / 0.606 GB, free: 5.082 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/0.7199, allocations: 32 kB / 0.6061 GB, free: 5.051 MB / 478.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.0181/0.738, allocations: 8.483 MB / 0.6143 GB, free: 12.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.804e-05/0.7381, allocations: 52 kB / 0.6144 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001531/0.7382, allocations: 108 kB / 0.6145 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003398/0.7417, allocations: 1.021 MB / 0.6155 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004861/0.7465, allocations: 1.322 MB / 0.6168 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002916/0.7495, allocations: 2.624 MB / 0.6193 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004931/0.7544, allocations: 319.7 kB / 0.6196 GB, free: 6.965 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/0.7558, allocations: 336 kB / 0.62 GB, free: 6.637 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 709 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005951/0.7617, allocations: 2.27 MB / 0.6222 GB, free: 4.352 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.7627, allocations: 288.2 kB / 0.6225 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2786/1.041, allocations: 4.907 MB / 0.6273 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-05/1.041, allocations: 51.27 kB / 0.6273 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/1.042, allocations: 3.75 kB / 0.6273 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-05/1.042, allocations: 12.14 kB / 0.6273 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01856/1.06, allocations: 11.47 MB / 0.6385 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.06, allocations: 9.531 kB / 0.6385 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/1.062, allocations: 413.2 kB / 0.6389 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/1.064, allocations: 0.6221 MB / 0.6395 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/1.065, allocations: 48.81 kB / 0.6396 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002024/1.067, allocations: 2.197 MB / 0.6417 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/1.067, allocations: 21.73 kB / 0.6417 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/1.077, allocations: 6.978 MB / 0.6486 GB, free: 141.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009884/1.078, allocations: 331.5 kB / 0.6489 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004197/1.078, allocations: 48.12 kB / 0.6489 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/1.08, allocations: 126.6 kB / 0.649 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003347/1.08, allocations: 164.8 kB / 0.6492 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001656/1.08, allocations: 72.81 kB / 0.6493 GB, free: 141.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002546/1.083, allocations: 1.744 MB / 0.651 GB, free: 140.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.083, allocations: 2.406 kB / 0.651 GB, free: 140.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004943/1.088, allocations: 0.9929 MB / 0.6519 GB, free: 140.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * 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 (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000563/1.088, allocations: 194.9 kB / 0.6521 GB, free: 140.2 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.02148/1.11, allocations: 9.77 MB / 0.6617 GB, free: 138.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.976e-05/1.11, allocations: 1.5 kB / 0.6617 GB, free: 138.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004378/1.114, allocations: 2.388 MB / 0.664 GB, free: 137.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/1.117, allocations: 458.3 kB / 0.6644 GB, free: 137 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0187/1.136, allocations: 13.23 MB / 0.6774 GB, free: 129.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003643/1.139, allocations: 3.508 MB / 0.6808 GB, free: 128 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004473/1.144, allocations: 2.08 MB / 0.6828 GB, free: 126.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007481/1.145, allocations: 234.9 kB / 0.683 GB, free: 126.4 MB / 494.1 MB Notification: Performance of SimCode: time 2.024e-06/1.145, allocations: 3.938 kB / 0.683 GB, free: 126.4 MB / 494.1 MB Notification: Performance of Templates: time 0.05748/1.202, allocations: 33.02 MB / 0.7153 GB, free: 95.22 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1)