Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.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.JointRRR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 247 MB, free: 10.55 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.2437/0.2437, allocations: 46.11 MB / 344.3 MB, free: 11.5 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.002207/0.002207, allocations: 79.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3815, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.01646/0.398, allocations: 12.4 MB / 0.5427 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.4084, allocations: 3.912 MB / 0.5465 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003081/0.4115, allocations: 67.03 kB / 0.5466 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00786/0.4194, allocations: 3.85 MB / 0.5504 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.4232, allocations: 0.8474 MB / 0.5512 GB, free: 12.62 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002744/0.426, allocations: 0.8842 MB / 0.552 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00418/0.4302, allocations: 2.303 MB / 0.5543 GB, free: 9.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006425/0.4366, allocations: 4.985 MB / 0.5592 GB, free: 4.379 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00283/0.4395, allocations: 1.473 MB / 0.5606 GB, free: 2.902 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003597/0.4431, allocations: 1.956 MB / 0.5625 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009775/0.4441, allocations: 476 kB / 0.563 GB, free: 488 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.4466, allocations: 1.178 MB / 0.5641 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002031/0.4486, allocations: 1.793 MB / 0.5659 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002964/0.4516, allocations: 2.068 MB / 0.5679 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.4625, allocations: 7.182 MB / 0.5749 GB, free: 4.215 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.4625, allocations: 0 / 0.5749 GB, free: 4.215 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4625, allocations: 0 / 0.5749 GB, free: 4.215 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002451/0.4628, allocations: 0 / 0.5749 GB, free: 4.215 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: 1173 * Number of variables: 1173 Notification: Performance of Generate backend data structure: time 0.01355/0.4763, allocations: 4.452 MB / 0.5792 GB, free: 15.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.4764, allocations: 8.031 kB / 0.5793 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001411/0.4778, allocations: 0.5822 MB / 0.5798 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00321/0.4811, allocations: 0.6852 MB / 0.5805 GB, free: 14.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00493/0.486, allocations: 2.241 MB / 0.5827 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.4863, allocations: 238.2 kB / 0.5829 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008117/0.4871, allocations: 319.9 kB / 0.5832 GB, free: 11.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/0.5094, allocations: 9.438 MB / 0.5924 GB, free: 1.797 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.775e-05/0.5095, allocations: 15.88 kB / 0.5924 GB, free: 1.781 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003974/0.5099, allocations: 135.9 kB / 0.5926 GB, free: 1.648 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00211/0.512, allocations: 1.181 MB / 0.5937 GB, free: 476 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02085/0.5329, allocations: 8.656 MB / 0.6022 GB, free: 7.793 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04295/0.5759, allocations: 27.11 MB / 0.6287 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.586, allocations: 3.116 MB / 0.6317 GB, free: 9.051 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002556/0.5886, allocations: 1.667 MB / 0.6333 GB, free: 7.383 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0129/0.6015, allocations: 9.078 MB / 0.6422 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.6016, allocations: 47.55 kB / 0.6422 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=93): time 4.238e-06/0.6016, allocations: 0 / 0.6422 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=110): time 0.02477/0.6264, allocations: 7.807 MB / 0.6499 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.6265, allocations: 68.34 kB / 0.6499 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/0.6303, allocations: 2.608 MB / 0.6525 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.6304, allocations: 49.7 kB / 0.6525 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001696/0.6321, allocations: 2.22 MB / 0.6547 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004377/0.6325, allocations: 452.5 kB / 0.6551 GB, free: 488 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/0.6337, allocations: 0.7857 MB / 0.6559 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.6338, allocations: 301.1 kB / 0.6562 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.6361, allocations: 1.432 MB / 0.6576 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00398/0.6401, allocations: 3.508 MB / 0.661 GB, free: 9.43 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/0.6473, allocations: 5.188 MB / 0.6661 GB, free: 3.219 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-05/0.6473, allocations: 24 kB / 0.6661 GB, free: 3.195 MB / 0.5137 GB Notification: Performance of matching and sorting (n=478) (initialization): time 0.008643/0.656, allocations: 4.935 MB / 0.6709 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.086e-05/0.6561, allocations: 36 kB / 0.6709 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.903e-05/0.6562, allocations: 76.12 kB / 0.671 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001062/0.6563, allocations: 96 kB / 0.6711 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/0.6593, allocations: 0.889 MB / 0.672 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000141/0.6594, allocations: 143.4 kB / 0.6721 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/0.6618, allocations: 215.7 kB / 0.6723 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003065/0.6621, allocations: 215.9 kB / 0.6725 GB, free: 12.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 59 (n1_a1.arrowLine.twoHeadedArrow,n1_a1.headAtOrigin,prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,n1_a1.color[3],n1_a1.color[2],n1_a1.color[1],prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRR.rodColor[3],jointRRR.rodColor[2],jointRRR.rodColor[1],jointRRR.cylinderColor[3],jointRRR.cylinderColor[2],jointRRR.cylinderColor[1],jointRRR.jointUSR.revolute.positiveBranch,jointRRR.jointUSR.rod1Color[3],jointRRR.jointUSR.rod1Color[2],jointRRR.jointUSR.rod1Color[1],jointRRR.jointUSR.cylinderColor[3],jointRRR.jointUSR.cylinderColor[2],jointRRR.jointUSR.cylinderColor[1],jointRRR.jointUSR.sphereColor[3],jointRRR.jointUSR.sphereColor[2],jointRRR.jointUSR.sphereColor[1],jointRRR.jointUSR.revoluteColor[3],jointRRR.jointUSR.revoluteColor[2],jointRRR.jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[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 (476): * Single equations (assignments): 475 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002566/0.6647, allocations: 1.601 MB / 0.6741 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003998/0.6651, allocations: 230.5 kB / 0.6743 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/0.6686, allocations: 2.102 MB / 0.6764 GB, free: 8.641 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.6687, allocations: 12 kB / 0.6764 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.6687, allocations: 0 / 0.6764 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.6687, allocations: 3.984 kB / 0.6764 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009808/0.6785, allocations: 6.079 MB / 0.6823 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.978e-05/0.6786, allocations: 16 kB / 0.6823 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009862/0.6796, allocations: 259.5 kB / 0.6826 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.321e-05/0.6796, allocations: 20 kB / 0.6826 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.199e-05/0.6797, allocations: 40 kB / 0.6826 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.711e-05/0.6797, allocations: 27.92 kB / 0.6827 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.635e-05/0.6797, allocations: 23.88 kB / 0.6827 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003047/0.6828, allocations: 2.193 MB / 0.6848 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006065/0.6834, allocations: 327.5 kB / 0.6851 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.6837, allocations: 40 kB / 0.6852 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008441/0.6845, allocations: 67.88 kB / 0.6852 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/0.6847, allocations: 124.2 kB / 0.6854 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.305e-05/0.6848, allocations: 51.98 kB / 0.6854 GB, free: 14.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002618/0.6874, allocations: 1.66 MB / 0.687 GB, free: 13.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6875, allocations: 0 / 0.687 GB, free: 13.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00308/0.6905, allocations: 0.6718 MB / 0.6877 GB, free: 12.54 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 0 () * 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 (136): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003752/0.6943, allocations: 2.848 MB / 0.6905 GB, free: 9.477 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005337/0.6997, allocations: 3.08 MB / 0.6935 GB, free: 6.418 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/0.6997, allocations: 0 / 0.6935 GB, free: 6.418 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.7009, allocations: 0.8104 MB / 0.6943 GB, free: 5.609 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.7029, allocations: 368.9 kB / 0.6946 GB, free: 5.258 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04469/0.7476, allocations: 28.64 MB / 0.7226 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/0.751, allocations: 2.663 MB / 0.7252 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002445/0.7534, allocations: 0.9423 MB / 0.7261 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/0.7555, allocations: 1.362 MB / 0.7274 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of SimCode: time 1.512e-06/0.7555, allocations: 0 / 0.7274 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4135/1.169, allocations: 51.93 MB / 0.7782 GB, free: 144.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/16.13, allocations: 14.69 kB / 0.7782 GB, free: 144.7 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1)