Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001552/0.001552, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247 MB, free: 10.44 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.2302/0.2302, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002213/0.002213, allocations: 79.86 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3847, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.01508/0.3998, allocations: 12.66 MB / 0.543 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009374/0.4092, allocations: 4.053 MB / 0.5469 GB, free: 320 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003036/0.4123, allocations: 68.28 kB / 0.547 GB, free: 308 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004271/0.4166, allocations: 1.846 MB / 0.5488 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.4225, allocations: 1.751 MB / 0.5505 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.424, allocations: 0.4912 MB / 0.551 GB, free: 12.79 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006147/0.4301, allocations: 3.771 MB / 0.5547 GB, free: 9.012 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003972/0.4341, allocations: 2.86 MB / 0.5575 GB, free: 6.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.4367, allocations: 1.335 MB / 0.5588 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.4395, allocations: 1.869 MB / 0.5606 GB, free: 2.883 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007888/0.4404, allocations: 284 kB / 0.5609 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002718/0.4431, allocations: 1.092 MB / 0.5619 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00201/0.4451, allocations: 1.734 MB / 0.5636 GB, free: 15.77 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002429/0.4475, allocations: 2.069 MB / 0.5656 GB, free: 13.69 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009643/0.4572, allocations: 6.917 MB / 0.5724 GB, free: 6.746 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4572, allocations: 0 / 0.5724 GB, free: 6.746 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4572, allocations: 0 / 0.5724 GB, free: 6.746 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002271/0.4575, allocations: 7.984 kB / 0.5724 GB, free: 6.738 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1622 * Number of variables: 1622 Notification: Performance of Generate backend data structure: time 0.01255/0.47, allocations: 4.906 MB / 0.5772 GB, free: 1.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.4701, allocations: 8.031 kB / 0.5772 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001272/0.4714, allocations: 0.7614 MB / 0.5779 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.4823, allocations: 3.141 MB / 0.581 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005143/0.4875, allocations: 2.287 MB / 0.5832 GB, free: 11.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.4877, allocations: 217.8 kB / 0.5835 GB, free: 11.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008661/0.4886, allocations: 299.7 kB / 0.5837 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.509, allocations: 10.94 MB / 0.5944 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.5092, allocations: 27.77 kB / 0.5945 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004305/0.5096, allocations: 135.8 kB / 0.5946 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004359/0.514, allocations: 2.503 MB / 0.597 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02133/0.5353, allocations: 10.29 MB / 0.6071 GB, free: 2.613 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05629/0.5917, allocations: 34.95 MB / 0.6412 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0085/0.6002, allocations: 4.292 MB / 0.6454 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003393/0.6036, allocations: 2.115 MB / 0.6475 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001489/0.6051, allocations: 1.311 MB / 0.6487 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.6052, allocations: 52.56 kB / 0.6488 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=235): time 4.338e-06/0.6052, allocations: 0 / 0.6488 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of matching and sorting (n=256): time 0.04079/0.646, allocations: 13.7 MB / 0.6622 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.025e-05/0.6461, allocations: 77.41 kB / 0.6623 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004289/0.6504, allocations: 2.763 MB / 0.665 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004541/0.6509, allocations: 65.69 kB / 0.665 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002527/0.6534, allocations: 2.936 MB / 0.6679 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001295/0.6547, allocations: 0.9804 MB / 0.6688 GB, free: 1.98 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/0.6564, allocations: 1.144 MB / 0.67 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6565, allocations: 305.1 kB / 0.6702 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003438/0.6599, allocations: 2.299 MB / 0.6725 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0062/0.6662, allocations: 5.387 MB / 0.6778 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/0.678, allocations: 8.45 MB / 0.686 GB, free: 13.36 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-05/0.6781, allocations: 28 kB / 0.686 GB, free: 13.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01911/0.6972, allocations: 8.422 MB / 0.6943 GB, free: 4.895 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.527e-05/0.6974, allocations: 52 kB / 0.6943 GB, free: 4.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/0.6975, allocations: 104 kB / 0.6944 GB, free: 4.742 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00394/0.7015, allocations: 1.041 MB / 0.6954 GB, free: 3.691 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004733/0.7062, allocations: 1.294 MB / 0.6967 GB, free: 2.395 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003327/0.7096, allocations: 2.601 MB / 0.6992 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003619/0.7132, allocations: 299.8 kB / 0.6995 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007402/0.714, allocations: 332 kB / 0.6998 GB, free: 15.03 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (701): * Single equations (assignments): 692 * 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 prepare postOptimizeDAE: time 0.00377/0.7177, allocations: 2.174 MB / 0.7019 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005896/0.7183, allocations: 298 kB / 0.7022 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00978/0.7281, allocations: 4.959 MB / 0.7071 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.385e-05/0.7282, allocations: 51.98 kB / 0.7071 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.7283, allocations: 0 / 0.7071 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.94e-05/0.7283, allocations: 11.91 kB / 0.7071 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02337/0.7517, allocations: 11.21 MB / 0.7181 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.238e-05/0.7517, allocations: 15.94 kB / 0.7181 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/0.7536, allocations: 407.4 kB / 0.7185 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003562/0.7571, allocations: 0.9081 MB / 0.7194 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003105/0.7575, allocations: 55.98 kB / 0.7194 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002976/0.7604, allocations: 2.418 MB / 0.7218 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/0.7605, allocations: 11.94 kB / 0.7218 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/0.7734, allocations: 7.394 MB / 0.729 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008819/0.7743, allocations: 331.1 kB / 0.7293 GB, free: 208 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003759/0.7747, allocations: 55.92 kB / 0.7294 GB, free: 152 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/0.7759, allocations: 131.8 kB / 0.7295 GB, free: 20 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2873/1.063, allocations: 147.2 kB / 0.7297 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002947/1.064, allocations: 75.38 kB / 0.7297 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004352/1.068, allocations: 1.69 MB / 0.7314 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.823e-06/1.068, allocations: 1.062 kB / 0.7314 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0052/1.073, allocations: 0.9593 MB / 0.7323 GB, free: 176.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_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 (206): * Single equations (assignments): 197 * 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.01188/1.085, allocations: 8.052 MB / 0.7402 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008899/1.094, allocations: 6.084 MB / 0.7461 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/1.094, allocations: 0 / 0.7461 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00423/1.098, allocations: 2.558 MB / 0.7486 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/1.101, allocations: 466.2 kB / 0.7491 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0541/1.155, allocations: 42.85 MB / 0.7909 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003112/1.158, allocations: 3.379 MB / 0.7942 GB, free: 123.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003674/1.162, allocations: 2.041 MB / 0.7962 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002252/1.164, allocations: 1.85 MB / 0.798 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of SimCode: time 7.31e-07/1.164, allocations: 0 / 0.798 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1362/1.3, allocations: 58.4 MB / 0.855 GB, free: 61.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.69/17.99, allocations: 9.922 kB / 0.855 GB, free: 61.8 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1)