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.009355/0.009355, allocations: 99.7 kB / 15.73 MB, free: 6.469 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.001684/0.001685, allocations: 193.8 kB / 16.67 MB, free: 6.379 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.635/1.635, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.3687/0.3687, allocations: 38 MB / 307.9 MB, free: 10.15 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.001588/0.001588, allocations: 75.84 kB / 433 MB, free: 5.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4002, allocations: 56.47 MB / 489.5 MB, free: 19.94 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.01562/0.4158, allocations: 13.17 MB / 0.4909 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.4268, allocations: 4.166 MB / 0.4949 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003738/0.4306, allocations: 71.09 kB / 0.495 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004397/0.435, allocations: 1.865 MB / 0.4968 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006435/0.4415, allocations: 1.862 MB / 0.4986 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.4431, allocations: 0.4974 MB / 0.4991 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006421/0.4495, allocations: 3.936 MB / 0.503 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003955/0.4535, allocations: 2.907 MB / 0.5058 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/0.4562, allocations: 1.411 MB / 0.5072 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003249/0.4595, allocations: 1.977 MB / 0.5091 GB, free: 288 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009966/0.4605, allocations: 305.4 kB / 0.5094 GB, free: 288 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002981/0.4635, allocations: 1.141 MB / 0.5105 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002467/0.466, allocations: 1.869 MB / 0.5123 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004206/0.4702, allocations: 2.21 MB / 0.5145 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01268/0.4829, allocations: 7.404 MB / 0.5217 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.483, allocations: 0 / 0.5217 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.483, allocations: 4 kB / 0.5217 GB, free: 6.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003103/0.4833, allocations: 4 kB / 0.5217 GB, free: 6.605 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.01294/0.4963, allocations: 4.919 MB / 0.5265 GB, free: 1.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.4964, allocations: 15.89 kB / 0.5266 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.507, allocations: 3.149 MB / 0.5296 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006893/0.5139, allocations: 2.185 MB / 0.5318 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003792/0.5144, allocations: 226 kB / 0.532 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001895/0.5163, allocations: 299.9 kB / 0.5323 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01953/0.5358, allocations: 11.9 MB / 0.5439 GB, free: 15.35 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.794e-05/0.536, allocations: 27.75 kB / 0.5439 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003907/0.5364, allocations: 139.8 kB / 0.5441 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004204/0.5406, allocations: 2.711 MB / 0.5467 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02319/0.5638, allocations: 11.08 MB / 0.5575 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06259/0.6264, allocations: 36.91 MB / 0.5936 GB, free: 11.62 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009135/0.6356, allocations: 4.707 MB / 0.5982 GB, free: 6.688 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00354/0.6392, allocations: 2.256 MB / 0.6004 GB, free: 4.43 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001714/0.6409, allocations: 1.311 MB / 0.6016 GB, free: 2.898 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/0.641, allocations: 52.55 kB / 0.6017 GB, free: 2.836 MB / 478.1 MB Notification: Performance of pre-optimization done (n=244): time 7.374e-06/0.641, allocations: 0 / 0.6017 GB, free: 2.836 MB / 478.1 MB Notification: Performance of matching and sorting (n=256): time 0.0375/0.6785, allocations: 13.53 MB / 0.6149 GB, free: 5.223 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.6787, allocations: 77.41 kB / 0.615 GB, free: 5.137 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004682/0.6833, allocations: 2.836 MB / 0.6178 GB, free: 2.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004306/0.6838, allocations: 57.7 kB / 0.6178 GB, free: 2.227 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002172/0.686, allocations: 2.961 MB / 0.6207 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001216/0.6872, allocations: 0.9443 MB / 0.6216 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001633/0.6889, allocations: 1.147 MB / 0.6227 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.689, allocations: 317 kB / 0.623 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003366/0.6924, allocations: 2.311 MB / 0.6253 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00603/0.6984, allocations: 5.474 MB / 0.6306 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3695/1.068, allocations: 8.549 MB / 0.639 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001318/1.068, allocations: 31 kB / 0.639 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.01961/1.088, allocations: 8.478 MB / 0.6473 GB, free: 114 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/1.088, allocations: 52.47 kB / 0.6474 GB, free: 114 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/1.088, allocations: 111.4 kB / 0.6475 GB, free: 114 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0042/1.092, allocations: 1.016 MB / 0.6485 GB, free: 113.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005698/1.098, allocations: 1.326 MB / 0.6498 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004144/1.102, allocations: 2.617 MB / 0.6523 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00501/1.107, allocations: 312.9 kB / 0.6526 GB, free: 112 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/1.108, allocations: 331.7 kB / 0.6529 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.004917/1.113, allocations: 2.282 MB / 0.6551 GB, free: 111 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000632/1.114, allocations: 285.9 kB / 0.6554 GB, free: 111 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009565/1.123, allocations: 4.918 MB / 0.6602 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.172e-05/1.124, allocations: 50.25 kB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/1.124, allocations: 1.188 kB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.411e-05/1.124, allocations: 9.438 kB / 0.6603 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02221/1.146, allocations: 11.45 MB / 0.6715 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/1.146, allocations: 7.875 kB / 0.6715 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/1.148, allocations: 407.6 kB / 0.6719 GB, free: 105.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002763/1.15, allocations: 0.619 MB / 0.6725 GB, free: 105.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/1.151, allocations: 50.47 kB / 0.6725 GB, free: 105.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/1.153, allocations: 2.196 MB / 0.6747 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/1.153, allocations: 15.69 kB / 0.6747 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009392/1.162, allocations: 6.977 MB / 0.6815 GB, free: 100.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008017/1.163, allocations: 338.1 kB / 0.6818 GB, free: 100.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/1.163, allocations: 50.38 kB / 0.6819 GB, free: 100.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/1.164, allocations: 127.7 kB / 0.682 GB, free: 100.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002962/1.165, allocations: 161.9 kB / 0.6821 GB, free: 100.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/1.165, allocations: 81.94 kB / 0.6822 GB, free: 100.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002364/1.167, allocations: 1.74 MB / 0.6839 GB, free: 99.07 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/1.167, allocations: 0 / 0.6839 GB, free: 99.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004105/1.171, allocations: 0.9947 MB / 0.6849 GB, free: 98.08 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.0004178/1.172, allocations: 190.2 kB / 0.6851 GB, free: 97.89 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.008461/1.18, allocations: 6.065 MB / 0.691 GB, free: 91.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.18, allocations: 0 / 0.691 GB, free: 91.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003468/1.184, allocations: 2.396 MB / 0.6933 GB, free: 89.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/1.187, allocations: 456.7 kB / 0.6938 GB, free: 88.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01783/1.205, allocations: 10.79 MB / 0.7043 GB, free: 78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003107/1.208, allocations: 3.512 MB / 0.7077 GB, free: 74.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003773/1.212, allocations: 2.081 MB / 0.7098 GB, free: 72.37 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006965/1.212, allocations: 231.4 kB / 0.71 GB, free: 72.14 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/1.212, allocations: 0 / 0.71 GB, free: 72.14 MB / 0.4981 GB Notification: Performance of Templates: time 0.05257/1.265, allocations: 30.24 MB / 0.7395 GB, free: 42.05 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)