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.001377/0.001377, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001628/0.001628, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.718/1.718, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.4236/0.4236, allocations: 40.01 MB / 310.4 MB, free: 9.992 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.0008319/0.0008322, allocations: 16 kB / 378.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1625, allocations: 57.97 MB / 436.8 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.3294/0.492, allocations: 30.78 MB / 467.6 MB, free: 33.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02103/0.5131, allocations: 7.256 MB / 474.8 MB, free: 31.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007767/0.5209, allocations: 140.1 kB / 475 MB, free: 31.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004799/0.5257, allocations: 1.526 MB / 476.5 MB, free: 31.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01328/0.539, allocations: 4.559 MB / 481.1 MB, free: 29.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002267/0.5413, allocations: 423.4 kB / 481.5 MB, free: 29.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005616/0.547, allocations: 4.279 MB / 485.8 MB, free: 28.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004526/0.5515, allocations: 3.381 MB / 489.1 MB, free: 26.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.554, allocations: 1.131 MB / 490.3 MB, free: 26.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003054/0.5571, allocations: 1.835 MB / 492.1 MB, free: 25.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006257/0.5577, allocations: 146.8 kB / 492.2 MB, free: 25.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.5602, allocations: 0.8715 MB / 493.1 MB, free: 25.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002454/0.5627, allocations: 1.661 MB / 494.8 MB, free: 25.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001733/0.5644, allocations: 0.8501 MB / 495.6 MB, free: 24.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.5764, allocations: 5.642 MB / 0.4895 GB, free: 23.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.5764, allocations: 0 / 0.4895 GB, free: 23.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5764, allocations: 1.469 kB / 0.4895 GB, free: 23.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003658/0.5768, allocations: 0 / 0.4895 GB, free: 23.31 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.01848/0.5953, allocations: 4.106 MB / 0.4935 GB, free: 20.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/0.5954, allocations: 12.86 kB / 0.4935 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01249/0.6079, allocations: 3.23 MB / 0.4967 GB, free: 18.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007124/0.6151, allocations: 2.151 MB / 0.4988 GB, free: 17.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003201/0.6154, allocations: 222 kB / 0.499 GB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.6173, allocations: 295.9 kB / 0.4993 GB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02655/0.6439, allocations: 11.9 MB / 0.5109 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/0.6441, allocations: 23.78 kB / 0.5109 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004824/0.6446, allocations: 134.3 kB / 0.5111 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004244/0.6488, allocations: 2.708 MB / 0.5137 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0243/0.6731, allocations: 11.06 MB / 0.5245 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06953/0.7428, allocations: 37.11 MB / 0.5608 GB, free: 7.809 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009642/0.7525, allocations: 4.7 MB / 0.5653 GB, free: 2.875 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003515/0.756, allocations: 2.244 MB / 0.5675 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001263/0.7573, allocations: 1.315 MB / 0.5688 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.916e-05/0.7574, allocations: 52.56 kB / 0.5689 GB, free: 15.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=244): time 6.031e-06/0.7574, allocations: 0 / 0.5689 GB, free: 15.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.04491/0.8023, allocations: 13.51 MB / 0.5821 GB, free: 1.445 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.983e-05/0.8025, allocations: 77.41 kB / 0.5821 GB, free: 1.359 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007335/0.8098, allocations: 2.82 MB / 0.5849 GB, free: 14.53 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006846/0.8105, allocations: 61.64 kB / 0.5849 GB, free: 14.46 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003016/0.8136, allocations: 2.972 MB / 0.5878 GB, free: 11.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001834/0.8154, allocations: 0.9366 MB / 0.5888 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008745/0.8163, allocations: 108 kB / 0.5889 GB, free: 10.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0006933/0.8171, allocations: 0.554 MB / 0.5894 GB, free: 9.828 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00469/0.8218, allocations: 2.291 MB / 0.5916 GB, free: 7.531 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007651/0.8294, allocations: 5.454 MB / 0.597 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007629/0.8371, allocations: 3.544 MB / 0.6004 GB, free: 12.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001286/0.8373, allocations: 32 kB / 0.6005 GB, free: 12.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.0235/0.8608, allocations: 8.436 MB / 0.6087 GB, free: 4.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000199/0.8611, allocations: 56.03 kB / 0.6088 GB, free: 4.445 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003015/0.8614, allocations: 112 kB / 0.6089 GB, free: 4.336 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003735/0.8651, allocations: 1.032 MB / 0.6099 GB, free: 3.293 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007244/0.8724, allocations: 1.33 MB / 0.6112 GB, free: 1.961 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004334/0.8768, allocations: 2.47 MB / 0.6136 GB, free: 15.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007482/0.8844, allocations: 320 kB / 0.6139 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002483/0.8869, allocations: 340 kB / 0.6142 GB, free: 14.7 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 (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 {(3,100.0%),(2,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 prepare postOptimizeDAE: time 0.009037/0.896, allocations: 2.282 MB / 0.6164 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/0.8972, allocations: 280.3 kB / 0.6167 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/0.9102, allocations: 4.912 MB / 0.6215 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.379e-05/0.9104, allocations: 47.98 kB / 0.6215 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.889e-05/0.9104, allocations: 0 / 0.6215 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.523e-05/0.9104, allocations: 7.969 kB / 0.6216 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3693/1.28, allocations: 11.44 MB / 0.6327 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-05/1.28, allocations: 9.812 kB / 0.6327 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/1.281, allocations: 411.8 kB / 0.6331 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002334/1.284, allocations: 0.6134 MB / 0.6337 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002574/1.284, allocations: 56.44 kB / 0.6338 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002288/1.286, allocations: 2.06 MB / 0.6358 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-05/1.286, allocations: 17.08 kB / 0.6358 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0106/1.297, allocations: 6.964 MB / 0.6426 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/1.298, allocations: 326.5 kB / 0.6429 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004472/1.299, allocations: 52.47 kB / 0.643 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/1.3, allocations: 129.4 kB / 0.6431 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/1.3, allocations: 166.7 kB / 0.6433 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/1.3, allocations: 74.62 kB / 0.6433 GB, free: 137.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003011/1.303, allocations: 1.711 MB / 0.645 GB, free: 137.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.303, allocations: 0 / 0.645 GB, free: 137.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00624/1.31, allocations: 0.9964 MB / 0.646 GB, free: 137 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 (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.0007392/1.31, allocations: 191.9 kB / 0.6462 GB, free: 136.9 MB / 494.1 MB [/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. [/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. Notification: Performance of simCode: created initialization part: time 0.01046/1.321, allocations: 5.984 MB / 0.652 GB, free: 134.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.017e-05/1.321, allocations: 3 kB / 0.652 GB, free: 134.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005181/1.326, allocations: 2.379 MB / 0.6543 GB, free: 133.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/1.33, allocations: 422.9 kB / 0.6547 GB, free: 133.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02739/1.357, allocations: 12.99 MB / 0.6674 GB, free: 126.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006372/1.363, allocations: 3.518 MB / 0.6708 GB, free: 125.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005506/1.369, allocations: 2.076 MB / 0.6729 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000802/1.37, allocations: 233 kB / 0.6731 GB, free: 125.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.203e-06/1.37, allocations: 0 / 0.6731 GB, free: 125.4 MB / 494.1 MB Notification: Performance of Templates: time 0.05987/1.43, allocations: 30.71 MB / 0.7031 GB, free: 105.3 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: