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.001492/0.001492, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001839/0.001839, allocations: 190.9 kB / 16.14 MB, free: 6.738 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.594/1.594, allocations: 205.1 MB / 222 MB, free: 4.777 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.3841/0.3841, allocations: 39.93 MB / 309.3 MB, free: 9.676 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.001413/0.001413, allocations: 64.47 kB / 376.9 MB, free: 13.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1591, allocations: 56.89 MB / 433.8 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.3543/0.5135, allocations: 34.08 MB / 467.9 MB, free: 34.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.534, allocations: 7.714 MB / 475.6 MB, free: 30.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01005/0.5441, allocations: 142.3 kB / 475.7 MB, free: 30.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00414/0.5484, allocations: 1.827 MB / 477.6 MB, free: 29.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00645/0.5549, allocations: 1.753 MB / 479.3 MB, free: 28.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001816/0.5567, allocations: 473 kB / 479.8 MB, free: 28.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009078/0.5658, allocations: 5.584 MB / 485.4 MB, free: 27.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005555/0.5714, allocations: 2.841 MB / 488.2 MB, free: 26.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002696/0.5741, allocations: 1.214 MB / 489.4 MB, free: 25.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002936/0.5771, allocations: 2.067 MB / 491.5 MB, free: 24.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007401/0.5779, allocations: 210.2 kB / 491.7 MB, free: 24.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002935/0.5808, allocations: 1.136 MB / 492.8 MB, free: 24.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002808/0.5836, allocations: 1.79 MB / 494.6 MB, free: 24.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003045/0.5867, allocations: 2.135 MB / 496.7 MB, free: 22.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.6011, allocations: 7.006 MB / 0.4919 GB, free: 20.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.6011, allocations: 0 / 0.4919 GB, free: 20.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.6012, allocations: 0 / 0.4919 GB, free: 20.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003846/0.6015, allocations: 0 / 0.4919 GB, free: 20.05 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.0181/0.6197, allocations: 4.933 MB / 0.4968 GB, free: 17.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.034e-05/0.6197, allocations: 8.906 kB / 0.4968 GB, free: 17.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.631, allocations: 3.141 MB / 0.4998 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006471/0.6375, allocations: 2.165 MB / 0.502 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.6378, allocations: 226.4 kB / 0.5022 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008138/0.6386, allocations: 296.4 kB / 0.5025 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02707/0.6657, allocations: 11.9 MB / 0.5141 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001951/0.6659, allocations: 27.81 kB / 0.5141 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001582/0.6675, allocations: 139.8 kB / 0.5142 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004586/0.6721, allocations: 2.703 MB / 0.5169 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02763/0.6998, allocations: 11.09 MB / 0.5277 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0788/0.7786, allocations: 37.14 MB / 0.564 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.789, allocations: 4.693 MB / 0.5686 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003907/0.793, allocations: 2.248 MB / 0.5708 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001423/0.7944, allocations: 1.315 MB / 0.572 GB, free: 9.867 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.83e-05/0.7945, allocations: 60.59 kB / 0.5721 GB, free: 9.801 MB / 446.1 MB Notification: Performance of pre-optimization done (n=244): time 8.646e-06/0.7945, allocations: 3.938 kB / 0.5721 GB, free: 9.797 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.04262/0.8372, allocations: 13.53 MB / 0.5853 GB, free: 12.18 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.8373, allocations: 81.34 kB / 0.5854 GB, free: 12.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006446/0.8437, allocations: 2.84 MB / 0.5882 GB, free: 9.238 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006774/0.8445, allocations: 61.61 kB / 0.5882 GB, free: 9.176 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002683/0.8472, allocations: 2.961 MB / 0.5911 GB, free: 6.172 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001947/0.8491, allocations: 0.9443 MB / 0.592 GB, free: 5.215 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00438/0.8535, allocations: 1.147 MB / 0.5932 GB, free: 4.055 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.8537, allocations: 309.1 kB / 0.5935 GB, free: 3.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004774/0.8585, allocations: 2.307 MB / 0.5957 GB, free: 1.438 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007403/0.8659, allocations: 5.482 MB / 0.6011 GB, free: 10.41 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01261/0.8785, allocations: 8.539 MB / 0.6094 GB, free: 328 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001995/0.8788, allocations: 36 kB / 0.6094 GB, free: 292 kB / 478.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02304/0.9018, allocations: 8.487 MB / 0.6177 GB, free: 7.785 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002094/0.9021, allocations: 52 kB / 0.6178 GB, free: 7.734 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003961/0.9025, allocations: 112 kB / 0.6179 GB, free: 7.625 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004048/0.9066, allocations: 1.021 MB / 0.6189 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005494/0.9121, allocations: 1.326 MB / 0.6202 GB, free: 5.266 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003884/0.916, allocations: 2.474 MB / 0.6226 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006605/0.9227, allocations: 315.6 kB / 0.6229 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002475/0.9252, allocations: 340 kB / 0.6232 GB, free: 2.012 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.333/1.258, allocations: 2.277 MB / 0.6254 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007918/1.259, allocations: 282.1 kB / 0.6257 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009342/1.268, allocations: 4.926 MB / 0.6305 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.891e-05/1.268, allocations: 44.59 kB / 0.6306 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.269, allocations: 0 / 0.6306 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-05/1.269, allocations: 14.12 kB / 0.6306 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02374/1.292, allocations: 11.48 MB / 0.6418 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/1.292, allocations: 9.312 kB / 0.6418 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/1.294, allocations: 418.7 kB / 0.6422 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002626/1.297, allocations: 0.6143 MB / 0.6428 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002845/1.297, allocations: 61.03 kB / 0.6428 GB, free: 141.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/1.299, allocations: 2.051 MB / 0.6448 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/1.299, allocations: 13.41 kB / 0.6449 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/1.31, allocations: 6.975 MB / 0.6517 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/1.312, allocations: 328.1 kB / 0.652 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/1.312, allocations: 47.12 kB / 0.652 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1.313, allocations: 131.2 kB / 0.6522 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004187/1.314, allocations: 159.7 kB / 0.6523 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/1.314, allocations: 72.52 kB / 0.6524 GB, free: 137.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003241/1.317, allocations: 1.746 MB / 0.6541 GB, free: 136.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.317, allocations: 0.625 kB / 0.6541 GB, free: 136.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006019/1.323, allocations: 0.994 MB / 0.6551 GB, free: 136.6 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.0006011/1.324, allocations: 191.9 kB / 0.6552 GB, free: 136.4 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.01228/1.336, allocations: 6.023 MB / 0.6611 GB, free: 134.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-05/1.336, allocations: 4.094 kB / 0.6611 GB, free: 134.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004891/1.341, allocations: 2.392 MB / 0.6635 GB, free: 133.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/1.344, allocations: 438.2 kB / 0.6639 GB, free: 133.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02323/1.368, allocations: 13.22 MB / 0.6768 GB, free: 126 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004113/1.372, allocations: 3.518 MB / 0.6802 GB, free: 124.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004715/1.376, allocations: 2.08 MB / 0.6823 GB, free: 123.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007475/1.377, allocations: 230.6 kB / 0.6825 GB, free: 123 MB / 494.1 MB Notification: Performance of SimCode: time 2.024e-06/1.377, allocations: 0 / 0.6825 GB, free: 123 MB / 494.1 MB Notification: Performance of Templates: time 0.05775/1.435, allocations: 31.85 MB / 0.7136 GB, free: 93.26 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (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)