Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001243/0.001243, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001645/0.001646, allocations: 191.4 kB / 16.25 MB, free: 6.621 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.656/1.656, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.3783/0.3783, allocations: 39.93 MB / 309.4 MB, free: 9.324 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.001496/0.001496, allocations: 75.88 kB / 377.1 MB, free: 13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1607, allocations: 56.87 MB / 434 MB, free: 4.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.3551/0.5159, allocations: 42.42 MB / 476.4 MB, free: 29.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02439/0.5404, allocations: 9.096 MB / 485.5 MB, free: 23.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01258/0.553, allocations: 177.1 kB / 485.7 MB, free: 23.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004883/0.558, allocations: 2.27 MB / 487.9 MB, free: 22.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006994/0.5651, allocations: 1.876 MB / 489.8 MB, free: 21.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002033/0.5671, allocations: 0.5449 MB / 490.4 MB, free: 21.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006786/0.5739, allocations: 4.307 MB / 494.7 MB, free: 19.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007159/0.5811, allocations: 3.885 MB / 498.6 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004335/0.5855, allocations: 1.652 MB / 0.4885 GB, free: 17.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005206/0.5907, allocations: 2.478 MB / 0.4909 GB, free: 16.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00216/0.5929, allocations: 372.6 kB / 0.4913 GB, free: 16.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004595/0.5975, allocations: 1.239 MB / 0.4925 GB, free: 16.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005085/0.6026, allocations: 2.145 MB / 0.4946 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009046/0.6116, allocations: 2.545 MB / 0.4971 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01926/0.6309, allocations: 8.004 MB / 0.5049 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.26e-05/0.631, allocations: 3.938 kB / 0.5049 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.559e-06/0.631, allocations: 0.9375 kB / 0.5049 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007815/0.6318, allocations: 0 / 0.5049 GB, free: 10.75 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.02779/0.6596, allocations: 5.479 MB / 0.5102 GB, free: 6.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/0.6597, allocations: 17.09 kB / 0.5102 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01368/0.6734, allocations: 3.197 MB / 0.5134 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009779/0.6833, allocations: 2.386 MB / 0.5157 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005015/0.6838, allocations: 274.6 kB / 0.516 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003519/0.6874, allocations: 364.8 kB / 0.5163 GB, free: 3.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03593/0.7234, allocations: 12.7 MB / 0.5287 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002539/0.7237, allocations: 31.72 kB / 0.5287 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002177/0.7259, allocations: 159.8 kB / 0.5289 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004848/0.7307, allocations: 2.762 MB / 0.5316 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02817/0.7589, allocations: 11.64 MB / 0.543 GB, free: 8.781 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08146/0.8404, allocations: 40.56 MB / 0.5826 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01256/0.853, allocations: 5.017 MB / 0.5875 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004734/0.8578, allocations: 2.416 MB / 0.5898 GB, free: 7.645 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/0.8716, allocations: 6.878 MB / 0.5965 GB, free: 404 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/0.8717, allocations: 52.56 kB / 0.5966 GB, free: 340 kB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 8.587e-06/0.8717, allocations: 0 / 0.5966 GB, free: 340 kB / 462.1 MB Notification: Performance of matching and sorting (n=259): time 0.0551/0.9269, allocations: 19.34 MB / 0.6155 GB, free: 12.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.718e-05/0.927, allocations: 77.34 kB / 0.6155 GB, free: 12.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007752/0.9348, allocations: 3.21 MB / 0.6187 GB, free: 9.547 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006389/0.9354, allocations: 65.69 kB / 0.6187 GB, free: 9.477 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003295/0.9387, allocations: 3.305 MB / 0.622 GB, free: 6.121 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002166/0.9409, allocations: 0.9676 MB / 0.6229 GB, free: 5.141 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00438/0.9453, allocations: 1.254 MB / 0.6241 GB, free: 3.875 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.9454, allocations: 309.1 kB / 0.6244 GB, free: 3.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00475/0.9502, allocations: 2.511 MB / 0.6269 GB, free: 1.055 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2906/1.241, allocations: 5.914 MB / 0.6327 GB, free: 144.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009453/1.25, allocations: 9.169 MB / 0.6416 GB, free: 138.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001091/1.25, allocations: 34.45 kB / 0.6417 GB, free: 138.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02178/1.272, allocations: 10.21 MB / 0.6516 GB, free: 135 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/1.272, allocations: 59.25 kB / 0.6517 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002413/1.273, allocations: 118.6 kB / 0.6518 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009037/1.282, allocations: 2.373 MB / 0.6541 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005117/1.287, allocations: 1.379 MB / 0.6555 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01955/1.306, allocations: 11.69 MB / 0.6669 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005849/1.312, allocations: 332.2 kB / 0.6672 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001439/1.314, allocations: 363.9 kB / 0.6675 GB, free: 129.2 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.006276/1.32, allocations: 2.451 MB / 0.6699 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008287/1.321, allocations: 313.7 kB / 0.6702 GB, free: 128.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008467/1.329, allocations: 4.719 MB / 0.6748 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-05/1.329, allocations: 44.56 kB / 0.6749 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.329, allocations: 3.719 kB / 0.6749 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.363e-05/1.33, allocations: 11.72 kB / 0.6749 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02312/1.353, allocations: 11.02 MB / 0.6857 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/1.353, allocations: 6.531 kB / 0.6857 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/1.355, allocations: 422.4 kB / 0.6861 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/1.356, allocations: 0.7048 MB / 0.6867 GB, free: 122.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002703/1.357, allocations: 59.27 kB / 0.6868 GB, free: 122 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002214/1.359, allocations: 2.565 MB / 0.6893 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/1.359, allocations: 7.938 kB / 0.6893 GB, free: 119.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00894/1.368, allocations: 7.211 MB / 0.6964 GB, free: 113.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/1.369, allocations: 352.8 kB / 0.6967 GB, free: 113 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00052/1.37, allocations: 44 kB / 0.6967 GB, free: 113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/1.371, allocations: 146.9 kB / 0.6969 GB, free: 112.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003635/1.371, allocations: 151.6 kB / 0.697 GB, free: 112.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/1.371, allocations: 67.98 kB / 0.6971 GB, free: 112.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004162/1.376, allocations: 1.951 MB / 0.699 GB, free: 111.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.376, allocations: 4 kB / 0.699 GB, free: 111.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01045/1.386, allocations: 1.144 MB / 0.7001 GB, free: 110 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.0008465/1.387, allocations: 194 kB / 0.7003 GB, free: 109.8 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.01684/1.404, allocations: 10.58 MB / 0.7106 GB, free: 99.49 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.404, allocations: 4 kB / 0.7106 GB, free: 99.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004068/1.408, allocations: 2.557 MB / 0.7131 GB, free: 96.88 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003851/1.412, allocations: 0.4903 MB / 0.7136 GB, free: 96.44 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02459/1.436, allocations: 13.99 MB / 0.7273 GB, free: 82.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007272/1.444, allocations: 3.797 MB / 0.731 GB, free: 78.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007001/1.451, allocations: 2.086 MB / 0.733 GB, free: 76.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/1.453, allocations: 243.4 kB / 0.7333 GB, free: 76.22 MB / 494.1 MB Notification: Performance of SimCode: time 3.176e-06/1.453, allocations: 4 kB / 0.7333 GB, free: 76.21 MB / 494.1 MB Notification: Performance of Templates: time 0.07715/1.53, allocations: 42.58 MB / 0.7748 GB, free: 33.74 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.pipe 2>&1)