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.007269/0.007269, allocations: 100.7 kB / 15.73 MB, free: 6.047 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.00139/0.00139, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.766/1.766, allocations: 205.1 MB / 222.5 MB, free: 4.48 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.3695/0.3695, allocations: 38 MB / 307.9 MB, free: 10.07 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.001942/0.001943, allocations: 67.91 kB / 433 MB, free: 5.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3752/0.3771, allocations: 56.47 MB / 489.5 MB, free: 20 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.01451/0.3917, allocations: 13.17 MB / 0.4909 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.4024, allocations: 4.168 MB / 0.4949 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003938/0.4065, allocations: 70.09 kB / 0.495 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00538/0.4119, allocations: 1.87 MB / 0.4968 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008669/0.4206, allocations: 1.91 MB / 0.4987 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002566/0.4232, allocations: 0.5045 MB / 0.4992 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007664/0.4309, allocations: 3.932 MB / 0.503 GB, free: 3.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006873/0.4378, allocations: 2.903 MB / 0.5059 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004609/0.4425, allocations: 1.42 MB / 0.5072 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004817/0.4473, allocations: 1.972 MB / 0.5092 GB, free: 244 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00207/0.4494, allocations: 304.8 kB / 0.5095 GB, free: 244 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004871/0.4543, allocations: 1.14 MB / 0.5106 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004288/0.4586, allocations: 1.866 MB / 0.5124 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007144/0.4658, allocations: 2.218 MB / 0.5146 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01514/0.481, allocations: 7.397 MB / 0.5218 GB, free: 6.574 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.4811, allocations: 4 kB / 0.5218 GB, free: 6.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4811, allocations: 4 kB / 0.5218 GB, free: 6.566 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003152/0.4814, allocations: 0 / 0.5218 GB, free: 6.566 MB / 398.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.0196/0.501, allocations: 4.919 MB / 0.5266 GB, free: 1.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.508e-05/0.5011, allocations: 15.89 kB / 0.5266 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01294/0.5141, allocations: 3.149 MB / 0.5297 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005592/0.5197, allocations: 2.189 MB / 0.5318 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000299/0.52, allocations: 230 kB / 0.532 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001842/0.5219, allocations: 299.9 kB / 0.5323 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.025/0.5469, allocations: 11.9 MB / 0.544 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001568/0.5471, allocations: 27.8 kB / 0.544 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001301/0.5484, allocations: 139.8 kB / 0.5441 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004365/0.5528, allocations: 2.703 MB / 0.5468 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02463/0.5775, allocations: 11.09 MB / 0.5576 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06638/0.6439, allocations: 36.91 MB / 0.5936 GB, free: 11.57 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009195/0.6531, allocations: 4.703 MB / 0.5982 GB, free: 6.645 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003301/0.6565, allocations: 2.252 MB / 0.6004 GB, free: 4.391 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001286/0.6578, allocations: 1.311 MB / 0.6017 GB, free: 2.859 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.231e-05/0.6579, allocations: 48.56 kB / 0.6017 GB, free: 2.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=244): time 5.32e-06/0.6579, allocations: 0 / 0.6017 GB, free: 2.801 MB / 478.1 MB Notification: Performance of matching and sorting (n=256): time 0.04055/0.6984, allocations: 13.54 MB / 0.615 GB, free: 5.176 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/0.6986, allocations: 73.41 kB / 0.615 GB, free: 5.094 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006842/0.7055, allocations: 2.84 MB / 0.6178 GB, free: 2.242 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006335/0.7061, allocations: 57.7 kB / 0.6179 GB, free: 2.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002847/0.709, allocations: 2.965 MB / 0.6208 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001699/0.7107, allocations: 0.9365 MB / 0.6217 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003022/0.7138, allocations: 1.147 MB / 0.6228 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.7139, allocations: 313.1 kB / 0.6231 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003981/0.7179, allocations: 2.322 MB / 0.6254 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006875/0.7248, allocations: 5.474 MB / 0.6307 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3122/1.037, allocations: 8.544 MB / 0.6391 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/1.037, allocations: 31.66 kB / 0.6391 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.01766/1.055, allocations: 8.478 MB / 0.6474 GB, free: 114.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.536e-05/1.055, allocations: 52.34 kB / 0.6474 GB, free: 114.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/1.055, allocations: 110.9 kB / 0.6475 GB, free: 114.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003768/1.059, allocations: 1.017 MB / 0.6485 GB, free: 114 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/1.063, allocations: 1.325 MB / 0.6498 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00294/1.066, allocations: 2.624 MB / 0.6524 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004356/1.071, allocations: 313.3 kB / 0.6527 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007661/1.072, allocations: 331.8 kB / 0.653 GB, free: 112 MB / 0.4981 GB 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.004631/1.076, allocations: 2.277 MB / 0.6552 GB, free: 111.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005679/1.077, allocations: 286.4 kB / 0.6555 GB, free: 111.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009497/1.086, allocations: 4.913 MB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.648e-05/1.086, allocations: 47.38 kB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/1.086, allocations: 1.312 kB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.121e-05/1.086, allocations: 13.92 kB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02148/1.108, allocations: 11.44 MB / 0.6715 GB, free: 105.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.58e-05/1.108, allocations: 11.62 kB / 0.6715 GB, free: 105.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/1.11, allocations: 415.4 kB / 0.6719 GB, free: 105.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00256/1.112, allocations: 0.612 MB / 0.6725 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002422/1.112, allocations: 54.89 kB / 0.6726 GB, free: 105.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001897/1.114, allocations: 2.192 MB / 0.6747 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/1.114, allocations: 15.28 kB / 0.6747 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009579/1.124, allocations: 6.981 MB / 0.6815 GB, free: 100.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000828/1.125, allocations: 335.4 kB / 0.6819 GB, free: 100.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007094/1.126, allocations: 54.59 kB / 0.6819 GB, free: 100.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/1.127, allocations: 123.9 kB / 0.682 GB, free: 100.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000349/1.127, allocations: 160.4 kB / 0.6822 GB, free: 100.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000181/1.128, allocations: 72.05 kB / 0.6823 GB, free: 100.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00311/1.131, allocations: 1.745 MB / 0.684 GB, free: 99.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.131, allocations: 0 / 0.684 GB, free: 99.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005272/1.136, allocations: 0.9933 MB / 0.6849 GB, free: 98.04 MB / 0.4981 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.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.0006491/1.137, allocations: 202.5 kB / 0.6851 GB, free: 97.85 MB / 0.4981 GB [/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.01026/1.147, allocations: 6.062 MB / 0.691 GB, free: 91.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.726e-05/1.147, allocations: 0 / 0.691 GB, free: 91.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003801/1.151, allocations: 2.394 MB / 0.6934 GB, free: 89.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003122/1.154, allocations: 461.3 kB / 0.6938 GB, free: 88.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/1.173, allocations: 10.79 MB / 0.7044 GB, free: 77.96 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005369/1.178, allocations: 3.512 MB / 0.7078 GB, free: 74.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004595/1.183, allocations: 2.081 MB / 0.7098 GB, free: 72.33 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/1.184, allocations: 223.4 kB / 0.71 GB, free: 72.11 MB / 0.4981 GB Notification: Performance of SimCode: time 1.523e-06/1.184, allocations: 0 / 0.71 GB, free: 72.11 MB / 0.4981 GB Notification: Performance of Templates: time 0.05234/1.236, allocations: 30.56 MB / 0.7399 GB, free: 41.62 MB / 0.4981 GB 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)