Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009335/0.0009336, allocations: 98.88 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 179.9 kB / 17.89 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 223.2 MB / 241.9 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 44.22 MB / 337.2 MB, free: 2.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003204, allocations: 12 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1082, allocations: 61.93 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.2588/0.367, allocations: 46.08 MB / 0.5056 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02219/0.3892, allocations: 9.79 MB / 0.5152 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00935/0.3986, allocations: 207.3 kB / 0.5154 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007776/0.4064, allocations: 2.224 MB / 0.5175 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01802/0.4245, allocations: 6.182 MB / 0.5236 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003864/0.4284, allocations: 0.6817 MB / 0.5242 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004797/0.4332, allocations: 2.981 MB / 0.5271 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01142/0.4447, allocations: 6.354 MB / 0.5334 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002575/0.4473, allocations: 0.8983 MB / 0.5342 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002923/0.4503, allocations: 1.476 MB / 0.5357 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009652/0.4513, allocations: 136.7 kB / 0.5358 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002614/0.4539, allocations: 0.7231 MB / 0.5365 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001951/0.4559, allocations: 1.365 MB / 0.5378 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.4572, allocations: 0.6884 MB / 0.5385 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006685/0.4639, allocations: 5.823 MB / 0.5442 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.464, allocations: 128 / 0.5442 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.464, allocations: 64 / 0.5442 GB, free: 0 / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002219/0.4642, allocations: 0 / 0.5442 GB, free: 0 / 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.008741/0.473, allocations: 3.621 MB / 0.5477 GB, free: 13.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.473, allocations: 8.125 kB / 0.5477 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00176/0.4748, allocations: 0.5928 MB / 0.5483 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003191/0.478, allocations: 0.6587 MB / 0.549 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00477/0.4828, allocations: 2.194 MB / 0.5511 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.483, allocations: 241.6 kB / 0.5513 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009981/0.484, allocations: 310.4 kB / 0.5516 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02119/0.5052, allocations: 9.437 MB / 0.5609 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.987e-05/0.5053, allocations: 11.88 kB / 0.5609 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003811/0.5057, allocations: 139 kB / 0.561 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001804/0.5075, allocations: 1.181 MB / 0.5621 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01945/0.527, allocations: 8.633 MB / 0.5706 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0405/0.5675, allocations: 27.25 MB / 0.5972 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00916/0.5767, allocations: 3.088 MB / 0.6002 GB, free: 11.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00229/0.5791, allocations: 1.659 MB / 0.6018 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01094/0.59, allocations: 9.003 MB / 0.6106 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.5901, allocations: 47.56 kB / 0.6107 GB, free: 44 kB / 446.1 MB Notification: Performance of pre-optimization done (n=93): time 2.725e-06/0.5901, allocations: 0 / 0.6107 GB, free: 44 kB / 446.1 MB Notification: Performance of matching and sorting (n=110): time 0.02288/0.613, allocations: 7.693 MB / 0.6182 GB, free: 8.355 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.6131, allocations: 60.41 kB / 0.6182 GB, free: 8.281 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003905/0.617, allocations: 2.597 MB / 0.6208 GB, free: 5.664 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000175/0.6172, allocations: 45.7 kB / 0.6208 GB, free: 5.613 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.6188, allocations: 2.137 MB / 0.6229 GB, free: 3.492 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004761/0.6193, allocations: 434.4 kB / 0.6233 GB, free: 3.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.6194, allocations: 77.58 kB / 0.6234 GB, free: 2.996 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002692/0.6197, allocations: 465.9 kB / 0.6238 GB, free: 2.535 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00231/0.622, allocations: 1.417 MB / 0.6252 GB, free: 1.117 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003563/0.6256, allocations: 3.484 MB / 0.6286 GB, free: 12.62 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003538/0.6292, allocations: 2.13 MB / 0.6307 GB, free: 10.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.688e-05/0.6293, allocations: 24 kB / 0.6307 GB, free: 10.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.009095/0.6384, allocations: 4.879 MB / 0.6355 GB, free: 5.574 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.822e-05/0.6384, allocations: 39.98 kB / 0.6355 GB, free: 5.535 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.6386, allocations: 76 kB / 0.6356 GB, free: 5.461 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-05/0.6387, allocations: 112 kB / 0.6357 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002877/0.6415, allocations: 0.8773 MB / 0.6366 GB, free: 4.473 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001229/0.6417, allocations: 143.4 kB / 0.6367 GB, free: 4.332 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/0.6439, allocations: 215.8 kB / 0.6369 GB, free: 4.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/0.6442, allocations: 216 kB / 0.6371 GB, free: 3.91 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002517/0.6467, allocations: 1.588 MB / 0.6387 GB, free: 2.312 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003389/0.6471, allocations: 218.4 kB / 0.6389 GB, free: 2.098 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.6503, allocations: 2.102 MB / 0.6409 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.6503, allocations: 12 kB / 0.6409 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.6503, allocations: 3.953 kB / 0.6409 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.6504, allocations: 11.92 kB / 0.6409 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009161/0.6595, allocations: 6.038 MB / 0.6468 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/0.6596, allocations: 12 kB / 0.6469 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009542/0.6605, allocations: 259.5 kB / 0.6471 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.109e-05/0.6606, allocations: 20 kB / 0.6471 GB, free: 9.395 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.802e-05/0.6607, allocations: 43.98 kB / 0.6472 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.827e-05/0.6607, allocations: 23.89 kB / 0.6472 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.481e-05/0.6607, allocations: 23.88 kB / 0.6472 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00271/0.6634, allocations: 2.173 MB / 0.6493 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006119/0.664, allocations: 322 kB / 0.6496 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002415/0.6643, allocations: 40 kB / 0.6497 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008056/0.6651, allocations: 59.94 kB / 0.6497 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.6653, allocations: 121.5 kB / 0.6498 GB, free: 6.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.218e-05/0.6654, allocations: 51.98 kB / 0.6499 GB, free: 6.344 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002492/0.6679, allocations: 1.648 MB / 0.6515 GB, free: 4.684 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6679, allocations: 4 kB / 0.6515 GB, free: 4.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002912/0.6708, allocations: 0.6835 MB / 0.6522 GB, free: 3.996 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003184/0.674, allocations: 2.797 MB / 0.6549 GB, free: 1.004 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004904/0.6789, allocations: 3.033 MB / 0.6579 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/0.679, allocations: 0.8125 kB / 0.6579 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.6801, allocations: 0.82 MB / 0.6587 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.6823, allocations: 342.4 kB / 0.659 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03672/0.719, allocations: 21.51 MB / 0.68 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002578/0.7216, allocations: 2.667 MB / 0.6826 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002471/0.7241, allocations: 0.954 MB / 0.6835 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.7259, allocations: 1.366 MB / 0.6849 GB, free: 188 kB / 0.5137 GB Notification: Performance of SimCode: time 8.72e-07/0.7259, allocations: 0 / 0.6849 GB, free: 188 kB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.322/1.048, allocations: 51.74 MB / 0.7354 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001255/1.048, allocations: 184.9 kB / 0.7356 GB, free: 175 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.258/4.306, allocations: 0 / 0.7356 GB, free: 175 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR_res.mat does not exist to compare? outputFormat=mat