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.006012/0.006012, allocations: 103.3 kB / 15.73 MB, free: 6.047 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.001271/0.001271, allocations: 189.4 kB / 16.67 MB, free: 5.969 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.698/1.698, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.3673/0.3673, allocations: 38 MB / 307.9 MB, free: 10.08 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: 79.84 kB / 433 MB, free: 5.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3988, allocations: 56.46 MB / 489.5 MB, free: 19.99 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.01636/0.4152, allocations: 14.51 MB / 0.4922 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.4296, allocations: 4.51 MB / 0.4966 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005257/0.435, allocations: 77.66 kB / 0.4966 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005926/0.4409, allocations: 2.379 MB / 0.499 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008283/0.4493, allocations: 2.006 MB / 0.5009 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002189/0.4515, allocations: 0.5895 MB / 0.5015 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0085/0.46, allocations: 4.303 MB / 0.5057 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005547/0.4656, allocations: 3.705 MB / 0.5093 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004489/0.4701, allocations: 1.656 MB / 0.5109 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004761/0.4749, allocations: 2.264 MB / 0.5132 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001161/0.4761, allocations: 372.4 kB / 0.5135 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.4797, allocations: 1.228 MB / 0.5147 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002708/0.4824, allocations: 2.123 MB / 0.5168 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003541/0.486, allocations: 2.528 MB / 0.5192 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01201/0.498, allocations: 8.295 MB / 0.5273 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.498, allocations: 0 / 0.5273 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4981, allocations: 0 / 0.5273 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002884/0.4983, allocations: 0 / 0.5273 GB, free: 0.8438 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.01365/0.512, allocations: 5.484 MB / 0.5327 GB, free: 11.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.5121, allocations: 11.89 kB / 0.5327 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01127/0.5234, allocations: 3.195 MB / 0.5358 GB, free: 8.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006978/0.5304, allocations: 2.406 MB / 0.5382 GB, free: 5.617 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003072/0.5307, allocations: 271.3 kB / 0.5384 GB, free: 5.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001937/0.5327, allocations: 363.6 kB / 0.5388 GB, free: 4.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02495/0.5576, allocations: 12.7 MB / 0.5512 GB, free: 7.824 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001403/0.5578, allocations: 31.66 kB / 0.5512 GB, free: 7.793 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005567/0.5584, allocations: 163.8 kB / 0.5514 GB, free: 7.633 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004329/0.5627, allocations: 2.762 MB / 0.5541 GB, free: 4.867 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02493/0.5877, allocations: 11.64 MB / 0.5655 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06841/0.6561, allocations: 40.33 MB / 0.6048 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.6672, allocations: 5.01 MB / 0.6097 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003716/0.6709, allocations: 2.417 MB / 0.6121 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/0.6845, allocations: 6.866 MB / 0.6188 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.892e-05/0.6846, allocations: 64.42 kB / 0.6189 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of pre-optimization done (n=238): time 5.621e-06/0.6846, allocations: 0 / 0.6189 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of matching and sorting (n=259): time 0.3522/1.037, allocations: 19.33 MB / 0.6377 GB, free: 125.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/1.037, allocations: 73.66 kB / 0.6378 GB, free: 125.4 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005758/1.043, allocations: 3.214 MB / 0.6409 GB, free: 124.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000445/1.043, allocations: 58.08 kB / 0.641 GB, free: 124.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.045, allocations: 3.313 MB / 0.6442 GB, free: 122 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001224/1.047, allocations: 0.9599 MB / 0.6452 GB, free: 121.3 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00188/1.048, allocations: 1.261 MB / 0.6464 GB, free: 120.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.285e-05/1.048, allocations: 308.7 kB / 0.6467 GB, free: 120.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004034/1.052, allocations: 2.512 MB / 0.6492 GB, free: 119.6 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006296/1.059, allocations: 5.916 MB / 0.6549 GB, free: 114.2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/1.071, allocations: 9.163 MB / 0.6639 GB, free: 107.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000196/1.071, allocations: 34.38 kB / 0.6639 GB, free: 107.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02422/1.096, allocations: 10.21 MB / 0.6739 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/1.096, allocations: 56.94 kB / 0.6739 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002181/1.096, allocations: 118 kB / 0.6741 GB, free: 103.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009026/1.105, allocations: 2.373 MB / 0.6764 GB, free: 103.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004345/1.109, allocations: 1.376 MB / 0.6777 GB, free: 103.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01586/1.125, allocations: 11.68 MB / 0.6891 GB, free: 97.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005658/1.131, allocations: 326.8 kB / 0.6894 GB, free: 96.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/1.132, allocations: 367.5 kB / 0.6898 GB, free: 96.8 MB / 0.4981 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.005235/1.137, allocations: 2.45 MB / 0.6922 GB, free: 95.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008115/1.138, allocations: 308 kB / 0.6925 GB, free: 94.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007491/1.146, allocations: 4.704 MB / 0.6971 GB, free: 90.17 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.141e-05/1.146, allocations: 47.98 kB / 0.6971 GB, free: 90.12 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/1.146, allocations: 8 kB / 0.6971 GB, free: 90.12 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/1.146, allocations: 15.89 kB / 0.6971 GB, free: 90.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02053/1.166, allocations: 10.98 MB / 0.7079 GB, free: 79.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.906e-05/1.166, allocations: 4 kB / 0.7079 GB, free: 79.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.168, allocations: 428.1 kB / 0.7083 GB, free: 78.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001919/1.17, allocations: 0.6934 MB / 0.7089 GB, free: 77.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000298/1.17, allocations: 59.91 kB / 0.709 GB, free: 77.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00219/1.173, allocations: 2.563 MB / 0.7115 GB, free: 75.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.173, allocations: 4 kB / 0.7115 GB, free: 75.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008685/1.181, allocations: 7.222 MB / 0.7186 GB, free: 67.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009322/1.182, allocations: 349 kB / 0.7189 GB, free: 67.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006106/1.183, allocations: 48 kB / 0.7189 GB, free: 67.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/1.184, allocations: 135.9 kB / 0.7191 GB, free: 67.26 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003016/1.185, allocations: 149.6 kB / 0.7192 GB, free: 67.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/1.185, allocations: 75.97 kB / 0.7193 GB, free: 67.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002566/1.187, allocations: 1.952 MB / 0.7212 GB, free: 65.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3e-07/1.187, allocations: 0 / 0.7212 GB, free: 65.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004687/1.192, allocations: 1.145 MB / 0.7223 GB, free: 63.95 MB / 0.4981 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.0004744/1.193, allocations: 194.2 kB / 0.7225 GB, free: 63.76 MB / 0.4981 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.009093/1.202, allocations: 6.288 MB / 0.7286 GB, free: 57.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.655e-06/1.202, allocations: 4 kB / 0.7286 GB, free: 57.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003807/1.206, allocations: 2.563 MB / 0.7311 GB, free: 54.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/1.209, allocations: 493.8 kB / 0.7316 GB, free: 54.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/1.227, allocations: 11.28 MB / 0.7426 GB, free: 43.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005113/1.232, allocations: 3.793 MB / 0.7463 GB, free: 39.21 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004792/1.237, allocations: 2.08 MB / 0.7484 GB, free: 37.12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/1.238, allocations: 243.4 kB / 0.7486 GB, free: 36.89 MB / 0.4981 GB Notification: Performance of SimCode: time 1.834e-06/1.238, allocations: 4 kB / 0.7486 GB, free: 36.88 MB / 0.4981 GB Notification: Performance of Templates: time 0.06914/1.308, allocations: 39.97 MB / 0.7876 GB, free: 13.04 MB / 0.5137 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)