Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002279/0.002284, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.998/1.998, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 88.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2883/0.2883, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.446e-05/2.475e-05, allocations: 4 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4214, allocations: 58.85 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.6195, allocations: 108.4 MB / 0.5717 GB, free: 6.879 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.6199, allocations: 79.47 kB / 0.5718 GB, free: 6.805 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7202/1.34, allocations: 97.58 MB / 0.6671 GB, free: 109.4 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.455e-06/1.34, allocations: 0 / 0.6671 GB, free: 109.4 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000211/1.34, allocations: 96.28 kB / 0.6672 GB, free: 109.4 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.02466/1.365, allocations: 4.694 MB / 0.6718 GB, free: 107.4 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.365, allocations: 15.56 kB / 0.6718 GB, free: 107.4 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02694/1.392, allocations: 3.623 MB / 0.6753 GB, free: 107.1 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01914/1.411, allocations: 4.933 MB / 0.6802 GB, free: 106.4 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/1.412, allocations: 164.4 kB / 0.6803 GB, free: 106.4 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003079/1.415, allocations: 290.4 kB / 0.6806 GB, free: 106.4 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01997/1.435, allocations: 8.526 MB / 0.6889 GB, free: 104.6 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03117/1.466, allocations: 11.26 MB / 0.6999 GB, free: 99.87 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002986/1.466, allocations: 34.16 kB / 0.6999 GB, free: 99.85 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002844/1.469, allocations: 15.53 kB / 0.7 GB, free: 99.85 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003001/1.472, allocations: 1.337 MB / 0.7013 GB, free: 99.61 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08192/1.554, allocations: 39.9 MB / 0.7402 GB, free: 66.04 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007537/1.562, allocations: 4.367 MB / 0.7445 GB, free: 61.44 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004539/1.566, allocations: 2.315 MB / 0.7468 GB, free: 59.11 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001841/1.568, allocations: 1.646 MB / 0.7484 GB, free: 57.2 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.645e-05/1.568, allocations: 60.55 kB / 0.7484 GB, free: 57.13 MB / 475.1 MB Notification: Performance of pre-optimization done (n=272): time 7.213e-06/1.568, allocations: 4 kB / 0.7484 GB, free: 57.13 MB / 475.1 MB Notification: Performance of matching and sorting (n=291): time 0.05537/1.624, allocations: 17.1 MB / 0.7651 GB, free: 39.87 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/1.624, allocations: 103.1 kB / 0.7652 GB, free: 39.75 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005491/1.629, allocations: 2.606 MB / 0.7678 GB, free: 37.13 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006349/1.63, allocations: 25.7 kB / 0.7678 GB, free: 37.1 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002568/1.633, allocations: 3.319 MB / 0.771 GB, free: 33.73 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001552/1.634, allocations: 1.048 MB / 0.7721 GB, free: 32.67 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007236/1.635, allocations: 0 / 0.7721 GB, free: 32.67 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0005255/1.636, allocations: 0.5921 MB / 0.7726 GB, free: 32.07 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005611/1.641, allocations: 2.422 MB / 0.775 GB, free: 29.64 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008464/1.65, allocations: 6.044 MB / 0.7809 GB, free: 21.79 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008314/1.658, allocations: 3.869 MB / 0.7847 GB, free: 17.92 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/1.658, allocations: 40 kB / 0.7847 GB, free: 17.88 MB / 475.1 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.03265/1.691, allocations: 9.532 MB / 0.794 GB, free: 8.355 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.691, allocations: 63.38 kB / 0.7941 GB, free: 8.297 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001675/1.691, allocations: 128 kB / 0.7942 GB, free: 8.172 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01645/1.708, allocations: 2.349 MB / 0.7965 GB, free: 5.824 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008889/1.717, allocations: 1.482 MB / 0.798 GB, free: 4.344 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02716/1.744, allocations: 9.802 MB / 0.8075 GB, free: 10.4 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006371/1.75, allocations: 227.6 kB / 0.8077 GB, free: 10.18 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001686/1.752, allocations: 392 kB / 0.8081 GB, free: 9.793 MB / 491.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring.e_rel_0[3]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[2]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (802): * Single equations (assignments): 794 * Array equations: 6 * 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: 0 * Non-linear torn systems: 2 {4 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.00198/1.754, allocations: 445.2 kB / 0.8085 GB, free: 9.359 MB / 491.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008595/1.755, allocations: 312 kB / 0.8088 GB, free: 9.051 MB / 491.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01545/1.77, allocations: 4.993 MB / 0.8137 GB, free: 3.992 MB / 491.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001352/1.771, allocations: 51.98 kB / 0.8138 GB, free: 3.941 MB / 491.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.771, allocations: 0 / 0.8138 GB, free: 3.941 MB / 491.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.212e-05/1.771, allocations: 19.98 kB / 0.8138 GB, free: 3.922 MB / 491.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03508/1.806, allocations: 11.16 MB / 0.8247 GB, free: 8.609 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.303e-05/1.806, allocations: 11.98 kB / 0.8247 GB, free: 8.598 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004414/1.81, allocations: 483.4 kB / 0.8251 GB, free: 8.125 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003981/1.814, allocations: 0.6968 MB / 0.8258 GB, free: 7.418 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006607/1.815, allocations: 31.98 kB / 0.8259 GB, free: 7.387 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004422/1.82, allocations: 2.333 MB / 0.8281 GB, free: 4.938 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.122e-05/1.82, allocations: 15.94 kB / 0.8282 GB, free: 4.922 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.356/2.176, allocations: 8.379 MB / 0.8363 GB, free: 121.7 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/2.177, allocations: 348.8 kB / 0.8367 GB, free: 121.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001224/2.178, allocations: 21.94 kB / 0.8367 GB, free: 121.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003346/2.181, allocations: 108.3 kB / 0.8368 GB, free: 121.6 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008875/2.182, allocations: 180.4 kB / 0.837 GB, free: 121.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003613/2.183, allocations: 87.64 kB / 0.837 GB, free: 121.6 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.004913/2.188, allocations: 1.7 MB / 0.8387 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.292e-06/2.188, allocations: 3.875 kB / 0.8387 GB, free: 121.4 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.008311/2.196, allocations: 1.008 MB / 0.8397 GB, free: 121.4 MB / 0.4952 GB 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 232 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001096/2.197, allocations: 169.4 kB / 0.8399 GB, free: 121.4 MB / 0.4952 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01632/2.213, allocations: 6.112 MB / 0.8458 GB, free: 121.2 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.68e-05/2.214, allocations: 1.438 kB / 0.8458 GB, free: 121.2 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0084/2.222, allocations: 2.653 MB / 0.8484 GB, free: 120.9 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003512/2.226, allocations: 316.7 kB / 0.8487 GB, free: 120.9 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03098/2.257, allocations: 10.45 MB / 0.8589 GB, free: 118.8 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009724/2.266, allocations: 3.913 MB / 0.8627 GB, free: 118 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002067/2.268, allocations: 305.2 kB / 0.863 GB, free: 118 MB / 0.4952 GB Notification: Performance of SimCode: time 1.623e-06/2.268, allocations: 0 / 0.863 GB, free: 118 MB / 0.4952 GB Notification: Performance of Templates: time 0.2102/2.479, allocations: 114 MB / 0.9743 GB, free: 40.46 MB / 0.4952 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)