Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2252/0.2252, allocations: 46.12 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 87.47 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1238, allocations: 62.44 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01603/0.1399, allocations: 13.96 MB / 494.2 MB, free: 7.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.1506, allocations: 4.419 MB / 498.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003014/0.1536, allocations: 71.81 kB / 498.7 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00536/0.1591, allocations: 2.371 MB / 0.4893 GB, free: 232 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005664/0.1648, allocations: 1.883 MB / 0.4911 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001751/0.1665, allocations: 0.5848 MB / 0.4917 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006428/0.173, allocations: 4.152 MB / 0.4958 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004804/0.1778, allocations: 3.579 MB / 0.4992 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002383/0.1802, allocations: 1.569 MB / 0.5008 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/0.183, allocations: 2.145 MB / 0.5029 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007146/0.1838, allocations: 348 kB / 0.5032 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.1862, allocations: 1.209 MB / 0.5044 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2234/0.4096, allocations: 1.991 MB / 0.5063 GB, free: 16.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002966/0.4126, allocations: 2.383 MB / 0.5087 GB, free: 16.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009129/0.4218, allocations: 7.491 MB / 0.516 GB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4218, allocations: 2.688 kB / 0.516 GB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4218, allocations: 0 / 0.516 GB, free: 15.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002711/0.4221, allocations: 0 / 0.516 GB, free: 15.2 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: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01707/0.4392, allocations: 5.351 MB / 0.5212 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.4392, allocations: 12.02 kB / 0.5212 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002034/0.4413, allocations: 0.8476 MB / 0.522 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01102/0.4523, allocations: 3.185 MB / 0.5252 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005906/0.4582, allocations: 2.46 MB / 0.5276 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.4585, allocations: 266.2 kB / 0.5278 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001257/0.4598, allocations: 347.6 kB / 0.5281 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02127/0.481, allocations: 12.18 MB / 0.54 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.4812, allocations: 28 kB / 0.5401 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005391/0.4818, allocations: 160.4 kB / 0.5402 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003537/0.4853, allocations: 2.638 MB / 0.5428 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02327/0.5086, allocations: 11.21 MB / 0.5537 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06997/0.5786, allocations: 39.1 MB / 0.5919 GB, free: 1.914 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/0.5903, allocations: 4.981 MB / 0.5968 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004023/0.5944, allocations: 2.371 MB / 0.5991 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/0.6066, allocations: 6.814 MB / 0.6058 GB, free: 3.168 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/0.6067, allocations: 48.56 kB / 0.6058 GB, free: 3.113 MB / 446.1 MB Notification: Performance of pre-optimization done (n=226): time 6.913e-06/0.6067, allocations: 4 kB / 0.6058 GB, free: 3.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.04255/0.6493, allocations: 16.18 MB / 0.6216 GB, free: 2.805 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/0.6494, allocations: 77.33 kB / 0.6217 GB, free: 2.719 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00626/0.6557, allocations: 3.122 MB / 0.6247 GB, free: 15.58 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007419/0.6565, allocations: 57.7 kB / 0.6248 GB, free: 15.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003357/0.6598, allocations: 3.193 MB / 0.6279 GB, free: 12.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001706/0.6616, allocations: 0.8783 MB / 0.6288 GB, free: 11.45 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002226/0.6638, allocations: 1.202 MB / 0.6299 GB, free: 10.24 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.664, allocations: 305.1 kB / 0.6302 GB, free: 9.941 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004468/0.6685, allocations: 2.366 MB / 0.6325 GB, free: 7.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008391/0.6769, allocations: 5.693 MB / 0.6381 GB, free: 308 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01349/0.6904, allocations: 8.743 MB / 0.6466 GB, free: 6.418 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001168/0.6906, allocations: 32 kB / 0.6467 GB, free: 6.387 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02058/0.7112, allocations: 8.822 MB / 0.6553 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.7113, allocations: 56 kB / 0.6553 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/0.7115, allocations: 120 kB / 0.6555 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003891/0.7154, allocations: 1.137 MB / 0.6566 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005192/0.7206, allocations: 1.347 MB / 0.6579 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/0.7328, allocations: 6.952 MB / 0.6647 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004902/0.7377, allocations: 326.2 kB / 0.665 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/0.7391, allocations: 340 kB / 0.6653 GB, free: 3.48 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (730): * Single equations (assignments): 722 * 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): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of prepare postOptimizeDAE: time 0.005352/0.7445, allocations: 2.349 MB / 0.6676 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000623/0.7451, allocations: 296.2 kB / 0.6679 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007872/0.753, allocations: 4.393 MB / 0.6722 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.701e-05/0.7531, allocations: 43.98 kB / 0.6722 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.7531, allocations: 4 kB / 0.6722 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/0.7531, allocations: 7.969 kB / 0.6722 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/0.7738, allocations: 10.3 MB / 0.6823 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/0.7739, allocations: 11.94 kB / 0.6823 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/0.7757, allocations: 375.4 kB / 0.6827 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.7779, allocations: 0.6816 MB / 0.6833 GB, free: 0.8984 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002778/0.7782, allocations: 47.98 kB / 0.6834 GB, free: 0.8516 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003255/0.7815, allocations: 2.572 MB / 0.6859 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.7815, allocations: 8 kB / 0.6859 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01149/0.793, allocations: 6.735 MB / 0.6925 GB, free: 7.309 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008352/0.7939, allocations: 341.3 kB / 0.6928 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006813/0.7946, allocations: 47.92 kB / 0.6928 GB, free: 6.906 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/0.7962, allocations: 131.8 kB / 0.693 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003834/0.7966, allocations: 137.6 kB / 0.6931 GB, free: 6.641 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000227/0.7968, allocations: 66.25 kB / 0.6932 GB, free: 6.578 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00342/0.8002, allocations: 1.895 MB / 0.695 GB, free: 4.676 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8002, allocations: 0 / 0.695 GB, free: 4.676 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005414/0.8057, allocations: 1.034 MB / 0.696 GB, free: 3.645 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (187): * Single equations (assignments): 178 * 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.01174/0.8174, allocations: 7.395 MB / 0.7032 GB, free: 12.14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01777/0.8352, allocations: 9.375 MB / 0.7124 GB, free: 2.773 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.8353, allocations: 1.812 kB / 0.7124 GB, free: 2.773 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004905/0.8402, allocations: 2.403 MB / 0.7147 GB, free: 324 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2204/1.061, allocations: 489.4 kB / 0.7152 GB, free: 203.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06254/1.123, allocations: 48.67 MB / 0.7627 GB, free: 167.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003361/1.127, allocations: 3.634 MB / 0.7663 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003926/1.131, allocations: 2.015 MB / 0.7683 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00277/1.133, allocations: 2.05 MB / 0.7703 GB, free: 160 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/1.133, allocations: 0 / 0.7703 GB, free: 160 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/1.24, allocations: 67.85 MB / 0.8365 GB, free: 92.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/15.22, allocations: 7.609 kB / 0.8365 GB, free: 92.45 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1)