Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001279/0.001279, 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.001162/0.001162, allocations: 192.2 kB / 16.25 MB, free: 6.625 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.579/1.579, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3784/0.3784, allocations: 39.93 MB / 309.4 MB, free: 8.984 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.2. 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.001601/0.001602, allocations: 63.91 kB / 377.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1605, allocations: 56.89 MB / 434 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.3647/0.5252, allocations: 34.07 MB / 468.1 MB, free: 34.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.5456, allocations: 7.618 MB / 475.7 MB, free: 30.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009758/0.5554, allocations: 138.8 kB / 475.8 MB, free: 30.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004405/0.56, allocations: 1.774 MB / 477.6 MB, free: 29.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007869/0.5679, allocations: 1.75 MB / 479.3 MB, free: 28.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.5698, allocations: 480.1 kB / 479.8 MB, free: 28.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006348/0.5762, allocations: 3.935 MB / 483.7 MB, free: 27.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003814/0.58, allocations: 3.028 MB / 486.8 MB, free: 25.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002467/0.5825, allocations: 1.414 MB / 488.2 MB, free: 25.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.5858, allocations: 2.161 MB / 490.4 MB, free: 24.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009222/0.5868, allocations: 303.9 kB / 490.6 MB, free: 24.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00277/0.5896, allocations: 1.168 MB / 491.8 MB, free: 24.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002164/0.5917, allocations: 1.886 MB / 493.7 MB, free: 23.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002553/0.5943, allocations: 2.234 MB / 495.9 MB, free: 21.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01527/0.6096, allocations: 7.122 MB / 0.4913 GB, free: 19.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.6097, allocations: 1.406 kB / 0.4913 GB, free: 19.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.6097, allocations: 0 / 0.4913 GB, free: 19.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004114/0.6101, allocations: 3.938 kB / 0.4913 GB, free: 19.34 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.02327/0.6334, allocations: 4.924 MB / 0.4961 GB, free: 16.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.497e-05/0.6335, allocations: 15.45 kB / 0.4961 GB, free: 16.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01476/0.6482, allocations: 3.151 MB / 0.4992 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009121/0.6574, allocations: 2.162 MB / 0.5013 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005017/0.658, allocations: 229.5 kB / 0.5015 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00275/0.6607, allocations: 295.8 kB / 0.5018 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03127/0.692, allocations: 11.9 MB / 0.5134 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.6922, allocations: 27.8 kB / 0.5134 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004916/0.6927, allocations: 143.8 kB / 0.5136 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003734/0.6964, allocations: 2.703 MB / 0.5162 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02578/0.7222, allocations: 11.09 MB / 0.527 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07002/0.7923, allocations: 37.14 MB / 0.5633 GB, free: 3.023 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009269/0.8017, allocations: 4.696 MB / 0.5679 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003388/0.8051, allocations: 2.25 MB / 0.5701 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/0.8063, allocations: 1.323 MB / 0.5714 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.8064, allocations: 56.56 kB / 0.5714 GB, free: 10.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=244): time 5.361e-06/0.8064, allocations: 0 / 0.5714 GB, free: 10.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.04003/0.8464, allocations: 13.54 MB / 0.5847 GB, free: 12.63 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.8466, allocations: 73.41 kB / 0.5847 GB, free: 12.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006188/0.8528, allocations: 2.84 MB / 0.5875 GB, free: 9.691 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008932/0.8537, allocations: 57.7 kB / 0.5876 GB, free: 9.629 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/0.856, allocations: 2.969 MB / 0.5905 GB, free: 6.617 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001474/0.8575, allocations: 0.9404 MB / 0.5914 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.8593, allocations: 1.151 MB / 0.5925 GB, free: 4.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.8594, allocations: 305.1 kB / 0.5928 GB, free: 4.199 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003329/0.8627, allocations: 2.311 MB / 0.5951 GB, free: 1.883 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005456/0.8682, allocations: 5.482 MB / 0.6004 GB, free: 10.85 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/0.8787, allocations: 8.542 MB / 0.6087 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/0.8789, allocations: 32 kB / 0.6088 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02057/0.8994, allocations: 8.475 MB / 0.6171 GB, free: 8.238 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/0.8996, allocations: 56.03 kB / 0.6171 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000207/0.8999, allocations: 108 kB / 0.6172 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00442/0.9043, allocations: 1.029 MB / 0.6182 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006363/0.9107, allocations: 1.326 MB / 0.6195 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003712/0.9145, allocations: 2.608 MB / 0.6221 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006833/0.9213, allocations: 323.4 kB / 0.6224 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001738/0.9231, allocations: 336 kB / 0.6227 GB, free: 2.316 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.007692/0.9308, allocations: 2.278 MB / 0.6249 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3261/1.257, allocations: 280.9 kB / 0.6252 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008745/1.266, allocations: 4.922 MB / 0.63 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.574e-05/1.266, allocations: 41 kB / 0.63 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/1.266, allocations: 3.156 kB / 0.63 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/1.266, allocations: 9.516 kB / 0.63 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01862/1.284, allocations: 11.48 MB / 0.6412 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/1.285, allocations: 9.719 kB / 0.6413 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/1.286, allocations: 414.2 kB / 0.6417 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002608/1.289, allocations: 0.6134 MB / 0.6423 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002045/1.289, allocations: 52.73 kB / 0.6423 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002271/1.291, allocations: 2.202 MB / 0.6445 GB, free: 141.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.215e-05/1.291, allocations: 14.84 kB / 0.6445 GB, free: 141.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/1.301, allocations: 6.979 MB / 0.6513 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.302, allocations: 328.1 kB / 0.6516 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/1.303, allocations: 46.75 kB / 0.6516 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/1.304, allocations: 126.9 kB / 0.6518 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/1.304, allocations: 162 kB / 0.6519 GB, free: 138.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/1.305, allocations: 72.77 kB / 0.652 GB, free: 138.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003057/1.308, allocations: 1.747 MB / 0.6537 GB, free: 138 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.308, allocations: 3.719 kB / 0.6537 GB, free: 138 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005305/1.313, allocations: 0.9953 MB / 0.6547 GB, free: 137.9 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.0005511/1.314, allocations: 198.5 kB / 0.6549 GB, free: 137.8 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.01993/1.333, allocations: 9.765 MB / 0.6644 GB, free: 135.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.888e-05/1.334, allocations: 0 / 0.6644 GB, free: 135.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003616/1.337, allocations: 2.398 MB / 0.6667 GB, free: 134.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002876/1.34, allocations: 459.3 kB / 0.6672 GB, free: 134.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02331/1.363, allocations: 13.22 MB / 0.6801 GB, free: 124.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003566/1.367, allocations: 3.513 MB / 0.6835 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006645/1.374, allocations: 2.076 MB / 0.6855 GB, free: 120.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/1.375, allocations: 231 kB / 0.6858 GB, free: 120.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.623e-06/1.375, allocations: 1.531 kB / 0.6858 GB, free: 120.5 MB / 494.1 MB Notification: Performance of Templates: time 0.07483/1.45, allocations: 33.01 MB / 0.718 GB, free: 88.92 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1)