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.001262/0.001262, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002769/0.002769, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.768/1.768, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.4411/0.4411, allocations: 39.94 MB / 309.7 MB, free: 9.281 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.001595/0.001595, allocations: 71.84 kB / 377.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.153, allocations: 56.88 MB / 434.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.01606/0.1691, allocations: 14.52 MB / 449 MB, free: 5.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.1806, allocations: 4.516 MB / 453.5 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002742/0.1834, allocations: 79.75 kB / 453.6 MB, free: 0.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3206/0.504, allocations: 2.374 MB / 456 MB, free: 36.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006039/0.5101, allocations: 2 MB / 458 MB, free: 36.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001687/0.5118, allocations: 0.5933 MB / 458.6 MB, free: 36.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005932/0.5178, allocations: 4.292 MB / 462.9 MB, free: 36.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004783/0.5226, allocations: 3.705 MB / 466.6 MB, free: 35.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003158/0.5258, allocations: 1.646 MB / 468.2 MB, free: 35.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004127/0.5299, allocations: 2.269 MB / 470.5 MB, free: 34.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001307/0.5313, allocations: 371.2 kB / 470.8 MB, free: 34.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003468/0.5348, allocations: 1.229 MB / 472.1 MB, free: 34.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002663/0.5374, allocations: 2.11 MB / 474.2 MB, free: 33.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003194/0.5406, allocations: 2.534 MB / 476.7 MB, free: 31.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.552, allocations: 7.96 MB / 484.7 MB, free: 29.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.218e-06/0.552, allocations: 0 / 484.7 MB, free: 29.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.552, allocations: 0 / 484.7 MB, free: 29.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004854/0.5525, allocations: 1.125 kB / 484.7 MB, free: 29.08 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.02244/0.575, allocations: 5.482 MB / 490.2 MB, free: 26.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.945e-05/0.5751, allocations: 14.11 kB / 490.2 MB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01458/0.5897, allocations: 3.2 MB / 493.4 MB, free: 25.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007757/0.5975, allocations: 2.386 MB / 495.8 MB, free: 24.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004641/0.598, allocations: 271.7 kB / 496 MB, free: 24.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002828/0.6009, allocations: 362.3 kB / 496.4 MB, free: 24.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03237/0.6332, allocations: 12.71 MB / 0.4972 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/0.6335, allocations: 32.78 kB / 0.4972 GB, free: 18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001076/0.6346, allocations: 163.1 kB / 0.4973 GB, free: 17.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004626/0.6392, allocations: 2.764 MB / 0.5 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02398/0.6632, allocations: 11.62 MB / 0.5114 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07282/0.7361, allocations: 40.58 MB / 0.551 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01125/0.7474, allocations: 5.009 MB / 0.5559 GB, free: 7.582 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004128/0.7516, allocations: 2.423 MB / 0.5583 GB, free: 5.152 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.7636, allocations: 6.874 MB / 0.565 GB, free: 13.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.206e-05/0.7637, allocations: 52.56 kB / 0.565 GB, free: 13.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 6.883e-06/0.7637, allocations: 0 / 0.565 GB, free: 13.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=259): time 0.0526/0.8163, allocations: 19.34 MB / 0.5839 GB, free: 10.43 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.8164, allocations: 73.41 kB / 0.584 GB, free: 10.35 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004524/0.8209, allocations: 3.206 MB / 0.5871 GB, free: 7.133 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004254/0.8214, allocations: 61.7 kB / 0.5872 GB, free: 7.066 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002213/0.8236, allocations: 3.3 MB / 0.5904 GB, free: 3.758 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001169/0.8248, allocations: 0.9665 MB / 0.5914 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001771/0.8266, allocations: 1.272 MB / 0.5926 GB, free: 1.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.8267, allocations: 301.1 kB / 0.5929 GB, free: 1.223 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003745/0.8304, allocations: 2.511 MB / 0.5953 GB, free: 14.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0059/0.8363, allocations: 5.923 MB / 0.6011 GB, free: 7.117 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/0.85, allocations: 9.162 MB / 0.6101 GB, free: 12.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001871/0.8503, allocations: 39.94 kB / 0.6101 GB, free: 12.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02444/0.8747, allocations: 10.2 MB / 0.6201 GB, free: 2.043 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.725e-05/0.8748, allocations: 56 kB / 0.6201 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/0.875, allocations: 127.9 kB / 0.6202 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009174/0.8842, allocations: 2.365 MB / 0.6226 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005532/0.8897, allocations: 1.376 MB / 0.6239 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01961/0.9094, allocations: 11.7 MB / 0.6353 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005404/0.9148, allocations: 327.8 kB / 0.6356 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/0.9161, allocations: 367.3 kB / 0.636 GB, free: 1.586 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.2773/1.193, allocations: 2.435 MB / 0.6384 GB, free: 142.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007699/1.194, allocations: 310.7 kB / 0.6387 GB, free: 142.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007886/1.202, allocations: 4.715 MB / 0.6433 GB, free: 142.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.744e-05/1.202, allocations: 44 kB / 0.6433 GB, free: 142.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/1.202, allocations: 3.328 kB / 0.6433 GB, free: 142.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.16e-05/1.202, allocations: 9.703 kB / 0.6433 GB, free: 142.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/1.22, allocations: 11.02 MB / 0.6541 GB, free: 140.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/1.221, allocations: 3.281 kB / 0.6541 GB, free: 140.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001792/1.222, allocations: 423.1 kB / 0.6545 GB, free: 140.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001921/1.224, allocations: 0.7045 MB / 0.6552 GB, free: 140.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/1.225, allocations: 56.98 kB / 0.6552 GB, free: 140.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002492/1.227, allocations: 2.553 MB / 0.6577 GB, free: 138.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/1.227, allocations: 12.12 kB / 0.6577 GB, free: 138.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/1.241, allocations: 7.214 MB / 0.6648 GB, free: 135.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/1.242, allocations: 348.8 kB / 0.6651 GB, free: 135.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006395/1.243, allocations: 51.45 kB / 0.6652 GB, free: 135.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/1.244, allocations: 141.7 kB / 0.6653 GB, free: 135.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004109/1.244, allocations: 149.6 kB / 0.6654 GB, free: 135.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001973/1.245, allocations: 69.64 kB / 0.6655 GB, free: 135.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004596/1.249, allocations: 1.954 MB / 0.6674 GB, free: 135.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.61e-07/1.249, allocations: 0 / 0.6674 GB, free: 135.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01014/1.259, allocations: 1.143 MB / 0.6685 GB, free: 134.9 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.00127/1.261, allocations: 199.2 kB / 0.6687 GB, free: 134.8 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.01992/1.281, allocations: 10.59 MB / 0.6791 GB, free: 133.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/1.281, allocations: 0 / 0.6791 GB, free: 133.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004201/1.285, allocations: 2.564 MB / 0.6816 GB, free: 132.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00296/1.288, allocations: 485.4 kB / 0.682 GB, free: 131.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/1.306, allocations: 11.43 MB / 0.6932 GB, free: 125.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004798/1.311, allocations: 3.797 MB / 0.6969 GB, free: 122.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005161/1.316, allocations: 2.078 MB / 0.6989 GB, free: 121.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008052/1.317, allocations: 244 kB / 0.6992 GB, free: 121.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.282e-06/1.317, allocations: 0 / 0.6992 GB, free: 121.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.07318/1.39, allocations: 42.61 MB / 0.7408 GB, free: 79.8 MB / 0.4981 GB 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)