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.001681/0.001681, 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.001818/0.001819, 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.467/1.467, 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.2287/0.2287, allocations: 46.12 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.00235/0.002351, allocations: 86.52 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.116, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.01499/0.131, allocations: 12.4 MB / 492.6 MB, free: 8.684 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008062/0.1391, allocations: 3.914 MB / 496.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.1409, allocations: 59.94 kB / 496.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007524/0.1485, allocations: 3.863 MB / 0.4887 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002701/0.1512, allocations: 0.8475 MB / 0.4895 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.1536, allocations: 0.8772 MB / 0.4904 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003514/0.1572, allocations: 2.288 MB / 0.4926 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008008/0.1652, allocations: 5 MB / 0.4975 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003502/0.1687, allocations: 1.461 MB / 0.4989 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00367/0.1724, allocations: 1.971 MB / 0.5009 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001504/0.174, allocations: 472 kB / 0.5013 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.1774, allocations: 1.178 MB / 0.5025 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002635/0.1801, allocations: 1.793 MB / 0.5042 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2234/0.4035, allocations: 2.056 MB / 0.5062 GB, free: 17.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009535/0.4131, allocations: 7.044 MB / 0.5131 GB, free: 17.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4131, allocations: 3.938 kB / 0.5131 GB, free: 17.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4131, allocations: 0 / 0.5131 GB, free: 17.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002489/0.4134, allocations: 1.062 kB / 0.5131 GB, free: 17.18 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: 1173 * Number of variables: 1173 Notification: Performance of Generate backend data structure: time 0.01382/0.4272, allocations: 4.321 MB / 0.5173 GB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.4273, allocations: 10.31 kB / 0.5173 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001262/0.4285, allocations: 0.5855 MB / 0.5179 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002987/0.4315, allocations: 0.6564 MB / 0.5186 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004191/0.4357, allocations: 2.218 MB / 0.5207 GB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.436, allocations: 235.6 kB / 0.5209 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007064/0.4367, allocations: 323.8 kB / 0.5213 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0206/0.4573, allocations: 9.438 MB / 0.5305 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.291e-05/0.4574, allocations: 15.16 kB / 0.5305 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004225/0.4578, allocations: 136.7 kB / 0.5306 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001837/0.4597, allocations: 1.18 MB / 0.5318 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01881/0.4785, allocations: 8.64 MB / 0.5402 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0454/0.524, allocations: 27.24 MB / 0.5668 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01061/0.5346, allocations: 3.115 MB / 0.5699 GB, free: 7.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/0.5376, allocations: 1.667 MB / 0.5715 GB, free: 6.281 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01473/0.5523, allocations: 9.063 MB / 0.5803 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.5524, allocations: 45.16 kB / 0.5804 GB, free: 12.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=93): time 3.095e-06/0.5524, allocations: 4 kB / 0.5804 GB, free: 12.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=110): time 0.02841/0.5808, allocations: 7.753 MB / 0.588 GB, free: 4.957 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.581, allocations: 64.41 kB / 0.588 GB, free: 4.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006181/0.5872, allocations: 2.607 MB / 0.5906 GB, free: 2.246 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003257/0.5875, allocations: 44.05 kB / 0.5906 GB, free: 2.199 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002184/0.5897, allocations: 2.147 MB / 0.5927 GB, free: 52 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007971/0.5905, allocations: 426.2 kB / 0.5931 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001871/0.5924, allocations: 0.7734 MB / 0.5939 GB, free: 14.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5926, allocations: 309.1 kB / 0.5942 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002665/0.5952, allocations: 1.437 MB / 0.5956 GB, free: 13.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004518/0.5998, allocations: 3.514 MB / 0.599 GB, free: 8.621 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007746/0.6076, allocations: 5.185 MB / 0.6041 GB, free: 2.715 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-05/0.6077, allocations: 20 kB / 0.6041 GB, free: 2.695 MB / 446.1 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.01056/0.6182, allocations: 4.924 MB / 0.6089 GB, free: 14.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.589e-05/0.6184, allocations: 36 kB / 0.6089 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/0.6185, allocations: 72 kB / 0.609 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/0.6187, allocations: 100 kB / 0.6091 GB, free: 13.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/0.6222, allocations: 0.8862 MB / 0.6099 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001446/0.6224, allocations: 144.8 kB / 0.6101 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/0.6254, allocations: 215.6 kB / 0.6103 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006227/0.6261, allocations: 212 kB / 0.6105 GB, free: 12.65 MB / 462.1 MB 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.003508/0.6296, allocations: 1.596 MB / 0.612 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000519/0.6301, allocations: 217.2 kB / 0.6123 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004323/0.6344, allocations: 2.106 MB / 0.6143 GB, free: 8.789 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.6345, allocations: 12 kB / 0.6143 GB, free: 8.777 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.6345, allocations: 0 / 0.6143 GB, free: 8.777 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.6345, allocations: 3.984 kB / 0.6143 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/0.6481, allocations: 6.088 MB / 0.6203 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/0.6482, allocations: 12 kB / 0.6203 GB, free: 2.512 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6492, allocations: 255.3 kB / 0.6205 GB, free: 2.281 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.062e-05/0.6493, allocations: 20 kB / 0.6205 GB, free: 2.262 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.6494, allocations: 44 kB / 0.6206 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.597e-05/0.6495, allocations: 26.17 kB / 0.6206 GB, free: 2.199 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.816e-05/0.6495, allocations: 25.94 kB / 0.6206 GB, free: 2.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003267/0.6528, allocations: 2.182 MB / 0.6228 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008307/0.6536, allocations: 314 kB / 0.6231 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005003/0.6541, allocations: 39.98 kB / 0.6231 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.6552, allocations: 67.94 kB / 0.6232 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.6555, allocations: 127.5 kB / 0.6233 GB, free: 15.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.876e-05/0.6556, allocations: 52 kB / 0.6233 GB, free: 15.21 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003344/0.6589, allocations: 1.664 MB / 0.625 GB, free: 13.53 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6589, allocations: 0 / 0.625 GB, free: 13.53 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003877/0.6628, allocations: 0.6719 MB / 0.6256 GB, free: 12.86 MB / 478.1 MB 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.004115/0.6669, allocations: 2.824 MB / 0.6284 GB, free: 9.828 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006728/0.6737, allocations: 3.478 MB / 0.6318 GB, free: 6.371 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-05/0.6737, allocations: 4 kB / 0.6318 GB, free: 6.367 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.6751, allocations: 0.8075 MB / 0.6326 GB, free: 5.562 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/0.6779, allocations: 366.6 kB / 0.6329 GB, free: 5.223 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05764/0.7355, allocations: 31.26 MB / 0.6634 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004622/0.7402, allocations: 2.671 MB / 0.6661 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003042/0.7433, allocations: 0.9384 MB / 0.667 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002399/0.7457, allocations: 1.37 MB / 0.6683 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of SimCode: time 1.162e-06/0.7457, allocations: 0 / 0.6683 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3087/1.054, allocations: 50.87 MB / 0.718 GB, free: 197.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.69/10.74, allocations: 6.438 kB / 0.718 GB, free: 197.8 MB / 0.545 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)