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.001071/0.001071, 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.0008447/0.0008448, 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.458/1.458, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.3346/0.3346, allocations: 38.05 MB / 308.4 MB, free: 10.39 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.0005546/0.0005548, allocations: 20 kB / 376.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.12, allocations: 57.52 MB / 434 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.2734/0.3935, allocations: 30.78 MB / 464.7 MB, free: 33.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.4117, allocations: 7.252 MB / 472 MB, free: 32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007511/0.4193, allocations: 140.3 kB / 472.1 MB, free: 31.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005974/0.4253, allocations: 1.528 MB / 473.7 MB, free: 31.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01425/0.4396, allocations: 4.573 MB / 478.2 MB, free: 30.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002777/0.4424, allocations: 423.2 kB / 478.6 MB, free: 30.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005319/0.4477, allocations: 4.282 MB / 482.9 MB, free: 30 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004655/0.4524, allocations: 3.364 MB / 486.3 MB, free: 28.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00232/0.4548, allocations: 1.131 MB / 487.4 MB, free: 28.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.4575, allocations: 1.836 MB / 489.3 MB, free: 28.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005385/0.4581, allocations: 151.2 kB / 489.4 MB, free: 28.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.4601, allocations: 0.878 MB / 490.3 MB, free: 27.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001732/0.4618, allocations: 1.658 MB / 491.9 MB, free: 27.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009314/0.4628, allocations: 0.8542 MB / 492.8 MB, free: 26.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008181/0.471, allocations: 5.635 MB / 498.4 MB, free: 25.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.471, allocations: 1.469 kB / 498.4 MB, free: 25.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.471, allocations: 4 kB / 498.4 MB, free: 25.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002968/0.4713, allocations: 0 / 498.4 MB, free: 25.81 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.01296/0.4843, allocations: 4.108 MB / 0.4908 GB, free: 23.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4843, allocations: 8.469 kB / 0.4908 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.4954, allocations: 3.236 MB / 0.4939 GB, free: 21.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006399/0.5018, allocations: 2.14 MB / 0.496 GB, free: 20.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.5021, allocations: 228.6 kB / 0.4962 GB, free: 20.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.5035, allocations: 291.7 kB / 0.4965 GB, free: 20.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02273/0.5262, allocations: 11.9 MB / 0.5081 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.5264, allocations: 31.67 kB / 0.5082 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004483/0.5268, allocations: 143.3 kB / 0.5083 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003807/0.5307, allocations: 2.704 MB / 0.5109 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01956/0.5502, allocations: 11.05 MB / 0.5217 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05186/0.6021, allocations: 37.11 MB / 0.558 GB, free: 12.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008088/0.6103, allocations: 4.69 MB / 0.5626 GB, free: 7.172 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003087/0.6134, allocations: 2.24 MB / 0.5647 GB, free: 4.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/0.6146, allocations: 1.319 MB / 0.566 GB, free: 3.391 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.6147, allocations: 52.56 kB / 0.5661 GB, free: 3.328 MB / 430.1 MB Notification: Performance of pre-optimization done (n=244): time 6.352e-06/0.6147, allocations: 96 / 0.5661 GB, free: 3.328 MB / 430.1 MB Notification: Performance of matching and sorting (n=256): time 0.03366/0.6484, allocations: 13.53 MB / 0.5793 GB, free: 5.723 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.6484, allocations: 73.41 kB / 0.5794 GB, free: 5.641 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004031/0.6525, allocations: 2.824 MB / 0.5821 GB, free: 2.805 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.6527, allocations: 57.7 kB / 0.5822 GB, free: 2.742 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001848/0.6545, allocations: 2.969 MB / 0.5851 GB, free: 15.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008647/0.6554, allocations: 0.9404 MB / 0.586 GB, free: 14.77 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002819/0.6557, allocations: 108 kB / 0.5861 GB, free: 14.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003948/0.6561, allocations: 0.5579 MB / 0.5866 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003322/0.6594, allocations: 2.287 MB / 0.5889 GB, free: 11.81 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005188/0.6646, allocations: 5.458 MB / 0.5942 GB, free: 4.797 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004746/0.6694, allocations: 3.536 MB / 0.5977 GB, free: 1.262 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.969e-05/0.6694, allocations: 32 kB / 0.5977 GB, free: 1.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.01342/0.6829, allocations: 8.432 MB / 0.6059 GB, free: 8.785 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.071e-05/0.6829, allocations: 52 kB / 0.606 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/0.6831, allocations: 116.1 kB / 0.6061 GB, free: 8.621 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00303/0.6861, allocations: 1.032 MB / 0.6071 GB, free: 7.578 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/0.6899, allocations: 1.33 MB / 0.6084 GB, free: 6.246 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.6925, allocations: 2.478 MB / 0.6108 GB, free: 3.625 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003131/0.6957, allocations: 315.7 kB / 0.6111 GB, free: 3.316 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005358/0.6962, allocations: 332 kB / 0.6114 GB, free: 2.992 MB / 478.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.004251/0.7005, allocations: 2.283 MB / 0.6137 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005654/0.7011, allocations: 288.2 kB / 0.6139 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008755/0.7098, allocations: 4.901 MB / 0.6187 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.166e-05/0.7099, allocations: 51.94 kB / 0.6188 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.7099, allocations: 0 / 0.6188 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.995e-05/0.7099, allocations: 15.95 kB / 0.6188 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2625/0.9724, allocations: 11.44 MB / 0.63 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.124e-05/0.9725, allocations: 8.781 kB / 0.63 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/0.9745, allocations: 416.3 kB / 0.6304 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/0.977, allocations: 0.6156 MB / 0.631 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005038/0.9775, allocations: 52.45 kB / 0.631 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001969/0.9795, allocations: 2.056 MB / 0.633 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/0.9795, allocations: 13.88 kB / 0.633 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/0.9901, allocations: 6.96 MB / 0.6398 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000921/0.9911, allocations: 332.2 kB / 0.6402 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003731/0.9914, allocations: 48.89 kB / 0.6402 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.9926, allocations: 130.7 kB / 0.6403 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.9929, allocations: 158.8 kB / 0.6405 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.9931, allocations: 76.44 kB / 0.6405 GB, free: 139.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002499/0.9956, allocations: 1.72 MB / 0.6422 GB, free: 139.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9956, allocations: 0 / 0.6422 GB, free: 139.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005313/1.001, allocations: 0.9926 MB / 0.6432 GB, free: 139.4 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.0006214/1.002, allocations: 186.6 kB / 0.6434 GB, free: 139.3 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.009509/1.011, allocations: 5.987 MB / 0.6492 GB, free: 137.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/1.011, allocations: 5.484 kB / 0.6492 GB, free: 137.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003623/1.015, allocations: 2.376 MB / 0.6515 GB, free: 136.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002684/1.017, allocations: 423 kB / 0.6519 GB, free: 136.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02278/1.04, allocations: 12.98 MB / 0.6646 GB, free: 129.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00631/1.047, allocations: 3.525 MB / 0.6681 GB, free: 128 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005859/1.053, allocations: 2.079 MB / 0.6701 GB, free: 127.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008642/1.053, allocations: 226.9 kB / 0.6703 GB, free: 127.8 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/1.053, allocations: 5.125 kB / 0.6703 GB, free: 127.8 MB / 494.1 MB Notification: Performance of Templates: time 0.05658/1.11, allocations: 30.7 MB / 0.7003 GB, free: 111.6 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: