Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP.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.JointRRP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001678/0.001678, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002136/0.002136, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2257/0.2257, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.002552/0.002552, allocations: 79.84 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1311, allocations: 62.44 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRP): time 0.01605/0.1471, allocations: 12.47 MB / 492.7 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009086/0.1563, allocations: 3.707 MB / 496.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/0.1588, allocations: 67.88 kB / 496.4 MB, free: 4.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00804/0.1669, allocations: 3.895 MB / 0.4886 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00292/0.1699, allocations: 0.8551 MB / 0.4894 GB, free: 68 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.1721, allocations: 0.7096 MB / 0.4901 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003933/0.176, allocations: 2.198 MB / 0.4923 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006862/0.1829, allocations: 4.926 MB / 0.4971 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.1855, allocations: 1.457 MB / 0.4985 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003359/0.1888, allocations: 1.909 MB / 0.5004 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.1902, allocations: 448 kB / 0.5008 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/0.1928, allocations: 1.018 MB / 0.5018 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002812/0.1956, allocations: 1.758 MB / 0.5035 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2211/0.4168, allocations: 2.026 MB / 0.5055 GB, free: 18.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.4269, allocations: 6.754 MB / 0.5121 GB, free: 18.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.427, allocations: 0.5 kB / 0.5121 GB, free: 18.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.427, allocations: 2.062 kB / 0.5121 GB, free: 18.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003142/0.4273, allocations: 1.219 kB / 0.5121 GB, free: 18.46 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01334/0.4406, allocations: 4.132 MB / 0.5161 GB, free: 16.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4407, allocations: 11.06 kB / 0.5161 GB, free: 16.89 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.442, allocations: 0.5795 MB / 0.5167 GB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002503/0.4445, allocations: 0.6165 MB / 0.5173 GB, free: 16.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004352/0.4489, allocations: 2.109 MB / 0.5194 GB, free: 16.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002421/0.4492, allocations: 236.2 kB / 0.5196 GB, free: 16.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009658/0.4501, allocations: 327.7 kB / 0.5199 GB, free: 16.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01997/0.4701, allocations: 8.199 MB / 0.5279 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.257e-05/0.4702, allocations: 18.2 kB / 0.5279 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004332/0.4707, allocations: 138.1 kB / 0.5281 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001489/0.4722, allocations: 1.094 MB / 0.5291 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.4867, allocations: 6.717 MB / 0.5357 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03384/0.5206, allocations: 24.3 MB / 0.5594 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006427/0.527, allocations: 1.985 MB / 0.5614 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.5285, allocations: 0.9056 MB / 0.5622 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01035/0.5389, allocations: 6.359 MB / 0.5685 GB, free: 9.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.539, allocations: 46.88 kB / 0.5685 GB, free: 9.605 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.695e-06/0.539, allocations: 0 / 0.5685 GB, free: 9.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01896/0.558, allocations: 5.753 MB / 0.5741 GB, free: 3.832 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.606e-05/0.5581, allocations: 113.1 kB / 0.5742 GB, free: 3.699 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/0.5629, allocations: 2.433 MB / 0.5766 GB, free: 1.238 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001256/0.563, allocations: 41.7 kB / 0.5766 GB, free: 1.191 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001776/0.5648, allocations: 2.177 MB / 0.5788 GB, free: 15.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003931/0.5652, allocations: 386.4 kB / 0.5791 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000986/0.5662, allocations: 0.7181 MB / 0.5798 GB, free: 13.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5663, allocations: 309 kB / 0.5801 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.5679, allocations: 0.9673 MB / 0.5811 GB, free: 12.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003317/0.5712, allocations: 3.052 MB / 0.5841 GB, free: 8.598 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005275/0.5765, allocations: 4.351 MB / 0.5883 GB, free: 3.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.08e-05/0.5766, allocations: 20 kB / 0.5883 GB, free: 3.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.006544/0.5831, allocations: 3.941 MB / 0.5922 GB, free: 15.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.883e-05/0.5832, allocations: 36 kB / 0.5922 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.5833, allocations: 72 kB / 0.5923 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001249/0.5835, allocations: 104.1 kB / 0.5924 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002439/0.5859, allocations: 0.8034 MB / 0.5932 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001463/0.5861, allocations: 144.2 kB / 0.5933 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002274/0.5883, allocations: 175.6 kB / 0.5935 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.5886, allocations: 208 kB / 0.5937 GB, free: 14.57 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 56 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointRRP.jointUSP.prismatic.positiveBranch,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],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[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 (449): * Single equations (assignments): 448 * 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.003192/0.5918, allocations: 1.583 MB / 0.5952 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005038/0.5924, allocations: 213.2 kB / 0.5954 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000555/0.5929, allocations: 254.2 kB / 0.5957 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.5929, allocations: 12 kB / 0.5957 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.593, allocations: 3.938 kB / 0.5957 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.593, allocations: 3.984 kB / 0.5957 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/0.6054, allocations: 5.862 MB / 0.6014 GB, free: 6.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.718e-05/0.6055, allocations: 16 kB / 0.6014 GB, free: 6.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007156/0.6062, allocations: 226 kB / 0.6016 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.365e-05/0.6062, allocations: 28 kB / 0.6017 GB, free: 6.254 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.373e-05/0.6063, allocations: 44 kB / 0.6017 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.802e-05/0.6064, allocations: 40.39 kB / 0.6017 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.814e-05/0.6064, allocations: 31.86 kB / 0.6018 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002682/0.6091, allocations: 1.969 MB / 0.6037 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006255/0.6097, allocations: 310.2 kB / 0.604 GB, free: 3.566 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.61, allocations: 55.98 kB / 0.604 GB, free: 3.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007712/0.6107, allocations: 43.98 kB / 0.6041 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.6109, allocations: 139.3 kB / 0.6042 GB, free: 3.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.687e-05/0.611, allocations: 56 kB / 0.6043 GB, free: 3.277 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003175/0.6142, allocations: 1.602 MB / 0.6058 GB, free: 1.664 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6142, allocations: 0 / 0.6058 GB, free: 1.664 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004453/0.6187, allocations: 0.5977 MB / 0.6064 GB, free: 1.066 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 88 * 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 (123): * Single equations (assignments): 123 * 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.003854/0.6225, allocations: 2.594 MB / 0.6089 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004514/0.6271, allocations: 2.355 MB / 0.6112 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/0.6271, allocations: 5.812 kB / 0.6113 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008496/0.628, allocations: 0.5399 MB / 0.6118 GB, free: 11.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002669/0.6306, allocations: 385.8 kB / 0.6121 GB, free: 10.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05037/0.681, allocations: 29 MB / 0.6405 GB, free: 9.691 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004712/0.6858, allocations: 2.674 MB / 0.6431 GB, free: 6.988 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00292/0.6887, allocations: 0.9053 MB / 0.644 GB, free: 6.078 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002367/0.6911, allocations: 1.362 MB / 0.6453 GB, free: 4.715 MB / 494.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6911, allocations: 0 / 0.6453 GB, free: 4.715 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1002/0.7913, allocations: 45.91 MB / 0.6901 GB, free: 7.023 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.662/10.45, allocations: 23.36 kB / 0.6901 GB, free: 7.008 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointRRP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointRRP.pipe 2>&1)