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.005804/0.005804, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001324/0.001324, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.699/1.699, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2018/0.2017, allocations: 38.01 MB / 307.9 MB, free: 5.988 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.00149/0.00149, allocations: 67.91 kB / 433 MB, free: 14.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1336, allocations: 56.47 MB / 489.5 MB, free: 5.875 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.01448/0.1481, allocations: 14.51 MB / 0.4922 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01131/0.1595, allocations: 4.502 MB / 0.4966 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003295/0.1629, allocations: 75.81 kB / 0.4966 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005175/0.1681, allocations: 2.398 MB / 0.499 GB, free: 308 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009019/0.1771, allocations: 2 MB / 0.5009 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002556/0.1797, allocations: 0.5847 MB / 0.5015 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007727/0.1875, allocations: 4.309 MB / 0.5057 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00643/0.1939, allocations: 3.703 MB / 0.5093 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003446/0.1974, allocations: 1.651 MB / 0.5109 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004115/0.2015, allocations: 2.27 MB / 0.5131 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001572/0.2031, allocations: 372 kB / 0.5135 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0035/0.2066, allocations: 1.225 MB / 0.5147 GB, free: 108 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3286/0.5353, allocations: 2.11 MB / 0.5168 GB, free: 9.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006965/0.5423, allocations: 2.528 MB / 0.5192 GB, free: 9.094 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02155/0.5639, allocations: 8.294 MB / 0.5273 GB, free: 7.895 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.5639, allocations: 1.375 kB / 0.5273 GB, free: 7.895 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.5639, allocations: 3.594 kB / 0.5273 GB, free: 7.895 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005367/0.5645, allocations: 0 / 0.5273 GB, free: 7.895 MB / 398.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.02293/0.5874, allocations: 5.473 MB / 0.5327 GB, free: 5.801 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.5875, allocations: 13.61 kB / 0.5327 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.6013, allocations: 3.201 MB / 0.5358 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.6128, allocations: 2.406 MB / 0.5382 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004102/0.6132, allocations: 277 kB / 0.5384 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002754/0.616, allocations: 359.5 kB / 0.5388 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03047/0.6465, allocations: 12.7 MB / 0.5512 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001876/0.6467, allocations: 41.52 kB / 0.5512 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001339/0.648, allocations: 163.9 kB / 0.5514 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005628/0.6537, allocations: 2.767 MB / 0.5541 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03009/0.6838, allocations: 11.62 MB / 0.5654 GB, free: 1.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08452/0.7684, allocations: 40.34 MB / 0.6048 GB, free: 9.062 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/0.7816, allocations: 5.016 MB / 0.6097 GB, free: 3.82 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004542/0.7862, allocations: 2.413 MB / 0.6121 GB, free: 1.398 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01633/0.8025, allocations: 6.867 MB / 0.6188 GB, free: 10.21 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.826e-05/0.8027, allocations: 56.56 kB / 0.6188 GB, free: 10.14 MB / 478.1 MB Notification: Performance of pre-optimization done (n=238): time 8.256e-06/0.8027, allocations: 0 / 0.6188 GB, free: 10.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=259): time 0.06216/0.8648, allocations: 19.35 MB / 0.6377 GB, free: 6.699 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.787e-05/0.865, allocations: 77.41 kB / 0.6378 GB, free: 6.613 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009303/0.8743, allocations: 3.206 MB / 0.6409 GB, free: 3.391 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008123/0.8752, allocations: 61.7 kB / 0.641 GB, free: 3.324 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003239/0.8784, allocations: 3.307 MB / 0.6442 GB, free: 12 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00189/0.8804, allocations: 0.964 MB / 0.6452 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004468/0.8848, allocations: 1.261 MB / 0.6464 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.885, allocations: 309.1 kB / 0.6467 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005551/0.8906, allocations: 2.507 MB / 0.6491 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/0.9007, allocations: 5.927 MB / 0.6549 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01604/0.9168, allocations: 9.161 MB / 0.6639 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002635/0.9171, allocations: 35.94 kB / 0.6639 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02943/0.9465, allocations: 10.21 MB / 0.6739 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.9467, allocations: 56 kB / 0.6739 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002318/0.947, allocations: 119.9 kB / 0.674 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009788/0.9568, allocations: 2.359 MB / 0.6764 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005413/0.9622, allocations: 1.38 MB / 0.6777 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02127/0.9835, allocations: 11.68 MB / 0.6891 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00542/0.989, allocations: 327.7 kB / 0.6894 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001586/0.9906, allocations: 362.8 kB / 0.6898 GB, free: 14.8 MB / 0.545 GB 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.007729/0.9984, allocations: 2.455 MB / 0.6922 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/0.9995, allocations: 312 kB / 0.6925 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01088/1.01, allocations: 4.712 MB / 0.6971 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.787e-05/1.011, allocations: 51.92 kB / 0.6971 GB, free: 7.211 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.936e-05/1.011, allocations: 4 kB / 0.6971 GB, free: 7.207 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.198e-05/1.011, allocations: 7.969 kB / 0.6971 GB, free: 7.199 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02645/1.037, allocations: 10.98 MB / 0.7078 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-05/1.037, allocations: 4 kB / 0.7079 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002091/1.039, allocations: 419.4 kB / 0.7082 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002234/1.041, allocations: 0.7012 MB / 0.7089 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004268/1.042, allocations: 59.97 kB / 0.709 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003013/1.045, allocations: 2.55 MB / 0.7115 GB, free: 8.254 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.045, allocations: 11.94 kB / 0.7115 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0121/1.057, allocations: 7.224 MB / 0.7185 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/1.058, allocations: 345.1 kB / 0.7189 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008688/1.059, allocations: 48 kB / 0.7189 GB, free: 488 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/1.061, allocations: 138.3 kB / 0.7191 GB, free: 352 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004372/1.062, allocations: 149.7 kB / 0.7192 GB, free: 204 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002286/1.062, allocations: 67.98 kB / 0.7193 GB, free: 136 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004485/1.066, allocations: 1.956 MB / 0.7212 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.066, allocations: 0 / 0.7212 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008327/1.075, allocations: 1.152 MB / 0.7223 GB, free: 13.03 MB / 0.5762 GB 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.001075/1.076, allocations: 191.8 kB / 0.7225 GB, free: 12.84 MB / 0.5762 GB [/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.01222/1.088, allocations: 6.279 MB / 0.7286 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.088, allocations: 0.8125 kB / 0.7286 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005037/1.093, allocations: 2.564 MB / 0.7311 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003804/1.097, allocations: 499.7 kB / 0.7316 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2791/1.376, allocations: 11.26 MB / 0.7426 GB, free: 205.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005529/1.382, allocations: 3.803 MB / 0.7463 GB, free: 204.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004457/1.386, allocations: 2.078 MB / 0.7483 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007887/1.387, allocations: 246.9 kB / 0.7486 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.462e-06/1.387, allocations: 1.688 kB / 0.7486 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.06423/1.451, allocations: 40.04 MB / 0.7877 GB, free: 174.1 MB / 0.5762 GB 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)