Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.00125, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001371/0.001371, allocations: 194.5 kB / 16.14 MB, free: 6.652 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.743/1.743, allocations: 205.1 MB / 222 MB, free: 4.762 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.3618/0.3618, allocations: 37.98 MB / 307.3 MB, free: 10.05 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.001474/0.001474, allocations: 68.53 kB / 374.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1578, allocations: 56.48 MB / 431 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.3384/0.4963, allocations: 42.41 MB / 473.4 MB, free: 31.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02286/0.5192, allocations: 9.207 MB / 482.6 MB, free: 25.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01252/0.5317, allocations: 176.4 kB / 482.8 MB, free: 25.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004927/0.5368, allocations: 2.335 MB / 485.1 MB, free: 24.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005557/0.5424, allocations: 1.885 MB / 487 MB, free: 23.87 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.5438, allocations: 0.5262 MB / 487.6 MB, free: 23.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006541/0.5504, allocations: 6.154 MB / 493.7 MB, free: 21.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004857/0.5553, allocations: 3.608 MB / 497.3 MB, free: 20.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003179/0.5585, allocations: 1.423 MB / 498.7 MB, free: 19.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004307/0.5628, allocations: 2.369 MB / 0.4894 GB, free: 19.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00139/0.5642, allocations: 261.3 kB / 0.4896 GB, free: 19.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/0.5677, allocations: 1.19 MB / 0.4908 GB, free: 18.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003164/0.5708, allocations: 2.035 MB / 0.4928 GB, free: 18.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004371/0.5752, allocations: 2.42 MB / 0.4951 GB, free: 16.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01225/0.5875, allocations: 7.863 MB / 0.5028 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.5875, allocations: 1.125 kB / 0.5028 GB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5876, allocations: 0 / 0.5028 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003863/0.5879, allocations: 0 / 0.5028 GB, free: 13.45 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: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.01943/0.6074, allocations: 5.477 MB / 0.5082 GB, free: 9.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.6075, allocations: 9.156 kB / 0.5082 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01173/0.6192, allocations: 3.2 MB / 0.5113 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007075/0.6263, allocations: 2.383 MB / 0.5136 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/0.6266, allocations: 269 kB / 0.5139 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002039/0.6287, allocations: 373.3 kB / 0.5142 GB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02727/0.656, allocations: 12.7 MB / 0.5266 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001411/0.6562, allocations: 35.72 kB / 0.5267 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005844/0.6568, allocations: 159.8 kB / 0.5268 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004323/0.6611, allocations: 2.77 MB / 0.5295 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02697/0.6881, allocations: 11.64 MB / 0.5409 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0664/0.7545, allocations: 40.57 MB / 0.5805 GB, free: 2.719 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.7657, allocations: 5.002 MB / 0.5854 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00387/0.7696, allocations: 2.429 MB / 0.5878 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.7813, allocations: 6.87 MB / 0.5945 GB, free: 3.809 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.7814, allocations: 48.56 kB / 0.5945 GB, free: 3.754 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 8.376e-06/0.7815, allocations: 3.984 kB / 0.5945 GB, free: 3.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=259): time 0.05138/0.8328, allocations: 19.35 MB / 0.6134 GB, free: 276 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.8329, allocations: 73.41 kB / 0.6135 GB, free: 188 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005499/0.8384, allocations: 3.21 MB / 0.6166 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006854/0.8392, allocations: 57.7 kB / 0.6167 GB, free: 12.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002962/0.8421, allocations: 3.309 MB / 0.6199 GB, free: 9.539 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001619/0.8438, allocations: 0.9675 MB / 0.6209 GB, free: 8.559 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001829/0.8456, allocations: 1.262 MB / 0.6221 GB, free: 7.285 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.587e-05/0.8457, allocations: 305.1 kB / 0.6224 GB, free: 6.984 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004261/0.85, allocations: 2.511 MB / 0.6248 GB, free: 4.469 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2791/1.129, allocations: 5.92 MB / 0.6306 GB, free: 145 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0102/1.139, allocations: 9.158 MB / 0.6396 GB, free: 139.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001624/1.14, allocations: 38.64 kB / 0.6396 GB, free: 139.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02235/1.162, allocations: 10.21 MB / 0.6496 GB, free: 136 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.162, allocations: 56.75 kB / 0.6496 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001907/1.162, allocations: 119.4 kB / 0.6497 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008946/1.171, allocations: 2.371 MB / 0.652 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005189/1.176, allocations: 1.369 MB / 0.6534 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0181/1.195, allocations: 10.75 MB / 0.6639 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005782/1.2, allocations: 329.4 kB / 0.6642 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001497/1.202, allocations: 365.3 kB / 0.6645 GB, free: 130.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (747): * Single equations (assignments): 739 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,5), (3,27)} Notification: Performance of prepare postOptimizeDAE: time 0.006386/1.208, allocations: 2.444 MB / 0.6669 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008961/1.209, allocations: 309.7 kB / 0.6672 GB, free: 129.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008933/1.218, allocations: 4.706 MB / 0.6718 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.669e-05/1.218, allocations: 54.22 kB / 0.6719 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/1.218, allocations: 3.969 kB / 0.6719 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-05/1.218, allocations: 10.45 kB / 0.6719 GB, free: 127.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02334/1.242, allocations: 11.03 MB / 0.6826 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/1.242, allocations: 5.016 kB / 0.6827 GB, free: 124.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/1.244, allocations: 420.7 kB / 0.6831 GB, free: 124 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/1.246, allocations: 0.6994 MB / 0.6837 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005979/1.246, allocations: 63.62 kB / 0.6838 GB, free: 123.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/1.249, allocations: 2.418 MB / 0.6862 GB, free: 122.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.249, allocations: 7.688 kB / 0.6862 GB, free: 122.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009497/1.258, allocations: 7.221 MB / 0.6932 GB, free: 117.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/1.26, allocations: 344.4 kB / 0.6935 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004294/1.26, allocations: 53.7 kB / 0.6936 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/1.261, allocations: 140.8 kB / 0.6937 GB, free: 116.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/1.262, allocations: 146.3 kB / 0.6939 GB, free: 116.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/1.262, allocations: 77.02 kB / 0.6939 GB, free: 116.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002911/1.265, allocations: 1.947 MB / 0.6958 GB, free: 115 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/1.265, allocations: 0 / 0.6958 GB, free: 115 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005838/1.271, allocations: 1.146 MB / 0.697 GB, free: 113.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (212): * Single equations (assignments): 203 * 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.000516/1.271, allocations: 195.5 kB / 0.6972 GB, free: 113.7 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1919:5-1921:161:writable] Warning: Variable freeMotionScalarInit.angle_3 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 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 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.008951/1.28, allocations: 6.247 MB / 0.7033 GB, free: 108.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/1.28, allocations: 0 / 0.7033 GB, free: 108.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003596/1.284, allocations: 2.562 MB / 0.7058 GB, free: 105.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/1.286, allocations: 477 kB / 0.7062 GB, free: 105.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/1.307, allocations: 13.99 MB / 0.7199 GB, free: 91.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004435/1.312, allocations: 3.793 MB / 0.7236 GB, free: 87.83 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004716/1.316, allocations: 2.084 MB / 0.7256 GB, free: 85.74 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007376/1.317, allocations: 243.4 kB / 0.7258 GB, free: 85.5 MB / 494.1 MB Notification: Performance of SimCode: time 2.154e-06/1.317, allocations: 4 kB / 0.7258 GB, free: 85.5 MB / 494.1 MB Notification: Performance of Templates: time 0.06841/1.385, allocations: 40.95 MB / 0.7658 GB, free: 44.65 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)