Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, 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.001268/0.001268, allocations: 192.5 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.659/1.659, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.3875/0.3875, allocations: 38 MB / 307.8 MB, free: 10.02 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.001849/0.001849, allocations: 67.91 kB / 375.2 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1582, allocations: 56.47 MB / 431.7 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.02014/0.1784, allocations: 14.53 MB / 446.2 MB, free: 8.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01429/0.1928, allocations: 4.502 MB / 450.7 MB, free: 3.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004887/0.1978, allocations: 79.75 kB / 450.8 MB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006325/0.2042, allocations: 2.378 MB / 453.2 MB, free: 1.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2892/0.4934, allocations: 1.998 MB / 455.2 MB, free: 35.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.4953, allocations: 0.5902 MB / 455.8 MB, free: 35.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005378/0.5007, allocations: 4.291 MB / 460.1 MB, free: 35.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003961/0.5047, allocations: 3.7 MB / 463.8 MB, free: 35.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002519/0.5072, allocations: 1.648 MB / 465.4 MB, free: 35.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/0.51, allocations: 2.274 MB / 467.7 MB, free: 35.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000789/0.5108, allocations: 370.9 kB / 468.1 MB, free: 35.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002419/0.5132, allocations: 1.229 MB / 469.3 MB, free: 34.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001803/0.5151, allocations: 2.119 MB / 471.4 MB, free: 34.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002187/0.5173, allocations: 2.525 MB / 473.9 MB, free: 32.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007426/0.5247, allocations: 7.956 MB / 481.9 MB, free: 29.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.5247, allocations: 0 / 481.9 MB, free: 29.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.807e-06/0.5247, allocations: 0.5156 kB / 481.9 MB, free: 29.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002139/0.525, allocations: 0 / 481.9 MB, free: 29.71 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01269/0.5377, allocations: 5.482 MB / 487.4 MB, free: 26.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.5377, allocations: 13.42 kB / 487.4 MB, free: 26.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/0.55, allocations: 3.203 MB / 490.6 MB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006607/0.5566, allocations: 2.382 MB / 493 MB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/0.5569, allocations: 276 kB / 493.2 MB, free: 25.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001107/0.5581, allocations: 359.6 kB / 493.6 MB, free: 25.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0264/0.5845, allocations: 12.71 MB / 0.4944 GB, free: 20.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001421/0.5847, allocations: 37.67 kB / 0.4945 GB, free: 20.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005502/0.5852, allocations: 166.4 kB / 0.4946 GB, free: 20.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004478/0.5897, allocations: 2.763 MB / 0.4973 GB, free: 19.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0237/0.6134, allocations: 11.62 MB / 0.5087 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06915/0.6826, allocations: 40.58 MB / 0.5483 GB, free: 1.016 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.695, allocations: 5.013 MB / 0.5532 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003982/0.699, allocations: 2.415 MB / 0.5556 GB, free: 9.344 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01268/0.7118, allocations: 6.88 MB / 0.5623 GB, free: 2.137 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.7118, allocations: 48.56 kB / 0.5623 GB, free: 2.078 MB / 430.1 MB Notification: Performance of pre-optimization done (n=238): time 5.681e-06/0.7119, allocations: 0 / 0.5623 GB, free: 2.078 MB / 430.1 MB Notification: Performance of matching and sorting (n=259): time 0.06073/0.7726, allocations: 19.33 MB / 0.5812 GB, free: 14.62 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.7727, allocations: 77.39 kB / 0.5813 GB, free: 14.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006156/0.7789, allocations: 3.21 MB / 0.5844 GB, free: 11.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004761/0.7794, allocations: 65.34 kB / 0.5845 GB, free: 11.25 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/0.7819, allocations: 3.311 MB / 0.5877 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001388/0.7833, allocations: 0.9626 MB / 0.5886 GB, free: 6.977 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002793/0.7861, allocations: 1.263 MB / 0.5899 GB, free: 5.707 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.7862, allocations: 301.1 kB / 0.5902 GB, free: 5.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003962/0.7902, allocations: 2.515 MB / 0.5926 GB, free: 2.891 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006299/0.7965, allocations: 5.924 MB / 0.5984 GB, free: 11.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/0.8079, allocations: 9.156 MB / 0.6073 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/0.8081, allocations: 39.94 kB / 0.6074 GB, free: 488 kB / 478.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02447/0.8326, allocations: 10.22 MB / 0.6174 GB, free: 6.254 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002934/0.833, allocations: 56.94 kB / 0.6174 GB, free: 6.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003992/0.8334, allocations: 120 kB / 0.6175 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009635/0.843, allocations: 2.37 MB / 0.6198 GB, free: 3.711 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005559/0.8487, allocations: 1.38 MB / 0.6212 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3198/1.168, allocations: 11.68 MB / 0.6326 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004946/1.173, allocations: 331.4 kB / 0.6329 GB, free: 141.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008801/1.174, allocations: 362.7 kB / 0.6333 GB, free: 141.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (747): * Single equations (assignments): 739 * Array equations: 6 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,5), (3,27)} Notification: Performance of prepare postOptimizeDAE: time 0.004339/1.179, allocations: 2.447 MB / 0.6356 GB, free: 140.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006659/1.179, allocations: 309.4 kB / 0.6359 GB, free: 140.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006917/1.186, allocations: 4.704 MB / 0.6405 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.776e-05/1.186, allocations: 51.75 kB / 0.6406 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/1.186, allocations: 3.219 kB / 0.6406 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-05/1.186, allocations: 10.5 kB / 0.6406 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02048/1.207, allocations: 11.03 MB / 0.6514 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/1.207, allocations: 4.953 kB / 0.6514 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001897/1.209, allocations: 422.3 kB / 0.6518 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002183/1.211, allocations: 0.7037 MB / 0.6525 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/1.211, allocations: 56.31 kB / 0.6525 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/1.214, allocations: 2.557 MB / 0.655 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/1.214, allocations: 9.953 kB / 0.655 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/1.227, allocations: 7.221 MB / 0.6621 GB, free: 130.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/1.228, allocations: 348.7 kB / 0.6624 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000485/1.229, allocations: 56.31 kB / 0.6625 GB, free: 130.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/1.23, allocations: 146.4 kB / 0.6626 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003825/1.23, allocations: 140 kB / 0.6627 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/1.231, allocations: 70.73 kB / 0.6628 GB, free: 130.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003807/1.234, allocations: 1.956 MB / 0.6647 GB, free: 129.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.235, allocations: 0 / 0.6647 GB, free: 129.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006564/1.241, allocations: 1.142 MB / 0.6658 GB, free: 129.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 203 * 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.0006027/1.242, allocations: 190.5 kB / 0.666 GB, free: 129.3 MB / 494.1 MB [/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 can't be selected as a state. [/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 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 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.01638/1.258, allocations: 10.6 MB / 0.6764 GB, free: 127.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/1.258, allocations: 0 / 0.6764 GB, free: 127.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003996/1.262, allocations: 2.554 MB / 0.6789 GB, free: 126 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/1.265, allocations: 491 kB / 0.6793 GB, free: 125.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02149/1.286, allocations: 11.42 MB / 0.6905 GB, free: 115.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004931/1.291, allocations: 3.801 MB / 0.6942 GB, free: 111.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0054/1.297, allocations: 2.076 MB / 0.6962 GB, free: 109.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007185/1.298, allocations: 247.4 kB / 0.6965 GB, free: 109.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.974e-06/1.298, allocations: 0 / 0.6965 GB, free: 109.2 MB / 494.1 MB Notification: Performance of Templates: time 0.06732/1.365, allocations: 42.58 MB / 0.738 GB, free: 66.72 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)