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.0009866/0.0009865, allocations: 90.91 kB / 15.36 MB, free: 0.7383 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.008651/0.008652, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.775/1.775, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.4107/0.4107, allocations: 39.99 MB / 310.7 MB, free: 9.914 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.0005905/0.0005904, allocations: 20 kB / 379.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1545, allocations: 57.95 MB / 437.4 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.3528/0.5073, allocations: 33.05 MB / 470.5 MB, free: 33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02219/0.5296, allocations: 7.657 MB / 478.1 MB, free: 30.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009259/0.539, allocations: 140.6 kB / 478.2 MB, free: 30.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001975/0.541, allocations: 0.5028 MB / 478.7 MB, free: 29.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006365/0.5474, allocations: 1.761 MB / 480.5 MB, free: 29.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.5491, allocations: 468.3 kB / 481 MB, free: 29.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006906/0.556, allocations: 5.587 MB / 486.6 MB, free: 27.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005399/0.5615, allocations: 3.818 MB / 490.4 MB, free: 25.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.5639, allocations: 1.056 MB / 491.4 MB, free: 25.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.5666, allocations: 1.872 MB / 493.3 MB, free: 24.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005262/0.5671, allocations: 147.2 kB / 493.4 MB, free: 24.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.5694, allocations: 1.068 MB / 494.5 MB, free: 24.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002323/0.5717, allocations: 1.708 MB / 496.2 MB, free: 23.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006809/0.5785, allocations: 2.048 MB / 498.3 MB, free: 22.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01594/0.5945, allocations: 6.819 MB / 0.4932 GB, free: 20.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.5946, allocations: 4 kB / 0.4933 GB, free: 20.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.5946, allocations: 1.125 kB / 0.4933 GB, free: 20.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004318/0.595, allocations: 0 / 0.4933 GB, free: 20.59 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.01765/0.6127, allocations: 4.047 MB / 0.4972 GB, free: 18.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.112e-05/0.6128, allocations: 8.25 kB / 0.4972 GB, free: 18.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01381/0.6266, allocations: 3.233 MB / 0.5004 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007238/0.6339, allocations: 2.177 MB / 0.5025 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003525/0.6343, allocations: 226 kB / 0.5027 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002439/0.6367, allocations: 291.7 kB / 0.503 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03273/0.6695, allocations: 11.93 MB / 0.5146 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001462/0.6697, allocations: 23.72 kB / 0.5147 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007031/0.6704, allocations: 135.8 kB / 0.5148 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004124/0.6745, allocations: 2.711 MB / 0.5174 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0259/0.7005, allocations: 11.1 MB / 0.5283 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07576/0.7763, allocations: 37.14 MB / 0.5646 GB, free: 4.176 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009557/0.7859, allocations: 4.695 MB / 0.5691 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003388/0.7893, allocations: 2.252 MB / 0.5713 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001294/0.7906, allocations: 1.315 MB / 0.5726 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/0.7907, allocations: 56.5 kB / 0.5727 GB, free: 11.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=244): time 6.622e-06/0.7907, allocations: 0 / 0.5727 GB, free: 11.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.03915/0.8299, allocations: 13.54 MB / 0.5859 GB, free: 13.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.83, allocations: 73.41 kB / 0.586 GB, free: 13.69 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005007/0.835, allocations: 2.836 MB / 0.5887 GB, free: 10.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004331/0.8354, allocations: 57.7 kB / 0.5888 GB, free: 10.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/0.8378, allocations: 2.969 MB / 0.5917 GB, free: 7.766 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/0.8392, allocations: 0.9404 MB / 0.5926 GB, free: 6.812 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007519/0.84, allocations: 0.503 MB / 0.5931 GB, free: 6.301 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.8401, allocations: 305.1 kB / 0.5934 GB, free: 6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003658/0.8438, allocations: 2.311 MB / 0.5957 GB, free: 3.684 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005872/0.8497, allocations: 5.486 MB / 0.601 GB, free: 12.65 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/0.8613, allocations: 8.546 MB / 0.6094 GB, free: 2.555 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001132/0.8614, allocations: 32 kB / 0.6094 GB, free: 2.523 MB / 478.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02004/0.8814, allocations: 8.475 MB / 0.6177 GB, free: 10.03 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.8816, allocations: 52 kB / 0.6177 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001498/0.8817, allocations: 111.8 kB / 0.6178 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003814/0.8856, allocations: 1.021 MB / 0.6188 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005114/0.8907, allocations: 1.326 MB / 0.6201 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003017/0.8937, allocations: 2.474 MB / 0.6225 GB, free: 4.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005521/0.8993, allocations: 323.8 kB / 0.6228 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/0.9005, allocations: 328 kB / 0.6231 GB, free: 4.266 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.006816/0.9073, allocations: 2.278 MB / 0.6254 GB, free: 1.977 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008015/0.9081, allocations: 284.3 kB / 0.6256 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3228/1.231, allocations: 4.919 MB / 0.6304 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.365e-05/1.231, allocations: 45.72 kB / 0.6305 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/1.231, allocations: 3.891 kB / 0.6305 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.797e-05/1.231, allocations: 10.12 kB / 0.6305 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/1.255, allocations: 11.47 MB / 0.6417 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/1.255, allocations: 9.312 kB / 0.6417 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/1.257, allocations: 413 kB / 0.6421 GB, free: 141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002844/1.26, allocations: 0.614 MB / 0.6427 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002042/1.26, allocations: 59.58 kB / 0.6428 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001867/1.262, allocations: 2.06 MB / 0.6448 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/1.262, allocations: 13.81 kB / 0.6448 GB, free: 139.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/1.272, allocations: 6.972 MB / 0.6516 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/1.273, allocations: 341.9 kB / 0.6519 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004361/1.274, allocations: 49.94 kB / 0.652 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/1.275, allocations: 128.5 kB / 0.6521 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/1.275, allocations: 165.2 kB / 0.6523 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/1.276, allocations: 70.89 kB / 0.6523 GB, free: 136.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003291/1.279, allocations: 1.743 MB / 0.654 GB, free: 136 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.279, allocations: 0 / 0.654 GB, free: 136 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006494/1.285, allocations: 0.9969 MB / 0.655 GB, free: 135.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.0006317/1.286, allocations: 197.9 kB / 0.6552 GB, free: 135.7 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.01164/1.298, allocations: 6.006 MB / 0.6611 GB, free: 133.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.589e-05/1.298, allocations: 5.125 kB / 0.6611 GB, free: 133.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004688/1.302, allocations: 2.383 MB / 0.6634 GB, free: 132.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006182/1.309, allocations: 430.4 kB / 0.6638 GB, free: 132.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02686/1.335, allocations: 13.43 MB / 0.6769 GB, free: 125.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005128/1.341, allocations: 3.522 MB / 0.6803 GB, free: 123.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004601/1.345, allocations: 2.073 MB / 0.6824 GB, free: 123.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007066/1.346, allocations: 234.7 kB / 0.6826 GB, free: 123.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.744e-06/1.346, allocations: 0 / 0.6826 GB, free: 123.7 MB / 494.1 MB Notification: Performance of Templates: time 0.05933/1.405, allocations: 31.43 MB / 0.7133 GB, free: 94.31 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: