Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001775/0.001775, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002141/0.002141, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2307/0.2307, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 88.14 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2964, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01278/0.3092, allocations: 10.81 MB / 0.5412 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00782/0.317, allocations: 3.623 MB / 0.5447 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.3186, allocations: 59.09 kB / 0.5448 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006061/0.3247, allocations: 3.241 MB / 0.548 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002531/0.3273, allocations: 0.7893 MB / 0.5487 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002262/0.3296, allocations: 0.8187 MB / 0.5495 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003609/0.3332, allocations: 2.065 MB / 0.5515 GB, free: 12.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005018/0.3383, allocations: 4.001 MB / 0.5554 GB, free: 8.168 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.34, allocations: 1.27 MB / 0.5567 GB, free: 6.895 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002154/0.3422, allocations: 1.683 MB / 0.5583 GB, free: 5.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005353/0.3427, allocations: 352 kB / 0.5587 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001905/0.3447, allocations: 1.049 MB / 0.5597 GB, free: 3.812 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.3461, allocations: 1.516 MB / 0.5612 GB, free: 2.293 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001789/0.3479, allocations: 1.753 MB / 0.5629 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006242/0.3541, allocations: 5.854 MB / 0.5686 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3542, allocations: 3.984 kB / 0.5686 GB, free: 10.65 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3542, allocations: 4 kB / 0.5686 GB, free: 10.65 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.692e-05/0.3542, allocations: 0 / 0.5686 GB, free: 10.65 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.008218/0.3625, allocations: 3.981 MB / 0.5725 GB, free: 6.598 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3625, allocations: 8.031 kB / 0.5725 GB, free: 6.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007328/0.3633, allocations: 0.541 MB / 0.573 GB, free: 6.039 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/0.3656, allocations: 0.5995 MB / 0.5736 GB, free: 5.438 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003321/0.3689, allocations: 1.833 MB / 0.5754 GB, free: 3.555 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.3691, allocations: 205.4 kB / 0.5756 GB, free: 3.352 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004871/0.3696, allocations: 275.9 kB / 0.5759 GB, free: 3.082 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01643/0.386, allocations: 8.16 MB / 0.5838 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.097e-05/0.3861, allocations: 19.88 kB / 0.5839 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/0.3865, allocations: 123.9 kB / 0.584 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001702/0.3882, allocations: 1.13 MB / 0.5851 GB, free: 9.297 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/0.4047, allocations: 6.951 MB / 0.5919 GB, free: 2.332 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04036/0.4451, allocations: 24.68 MB / 0.616 GB, free: 9.074 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008108/0.4533, allocations: 2.274 MB / 0.6182 GB, free: 6.789 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001676/0.455, allocations: 1.089 MB / 0.6192 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.4653, allocations: 7.198 MB / 0.6263 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/0.4654, allocations: 39.22 kB / 0.6263 GB, free: 13.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=80): time 2.605e-06/0.4654, allocations: 3.938 kB / 0.6263 GB, free: 13.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01849/0.4839, allocations: 5.456 MB / 0.6316 GB, free: 8.395 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.484, allocations: 64.41 kB / 0.6317 GB, free: 8.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003412/0.4874, allocations: 2.404 MB / 0.6341 GB, free: 5.887 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.002e-05/0.4875, allocations: 45.69 kB / 0.6341 GB, free: 5.836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.4892, allocations: 2.145 MB / 0.6362 GB, free: 3.668 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.4896, allocations: 397 kB / 0.6366 GB, free: 3.277 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009787/0.4906, allocations: 0.7187 MB / 0.6373 GB, free: 2.551 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4907, allocations: 305.1 kB / 0.6376 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/0.4925, allocations: 1.03 MB / 0.6386 GB, free: 1.219 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003813/0.4963, allocations: 3.193 MB / 0.6417 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006011/0.5023, allocations: 4.573 MB / 0.6462 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.885e-05/0.5024, allocations: 20 kB / 0.6462 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of matching and sorting (n=452) (initialization): time 0.007283/0.5097, allocations: 4.138 MB / 0.6502 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.886e-05/0.5098, allocations: 38.19 kB / 0.6502 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.75e-05/0.5098, allocations: 80 kB / 0.6503 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001202/0.51, allocations: 100 kB / 0.6504 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002661/0.5126, allocations: 0.8427 MB / 0.6512 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001473/0.5128, allocations: 147.4 kB / 0.6514 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.5149, allocations: 179.9 kB / 0.6516 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002942/0.5152, allocations: 208 kB / 0.6518 GB, free: 1.559 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 349 * Number of states: 0 () * Number of discrete variables: 53 (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,jointUSR.revolute.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],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],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 (452): * Single equations (assignments): 452 * 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 prepare postOptimizeDAE: time 0.002193/0.5174, allocations: 1.434 MB / 0.6532 GB, free: 112 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000396/0.5178, allocations: 222.5 kB / 0.6534 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.5203, allocations: 1.418 MB / 0.6548 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.5204, allocations: 8 kB / 0.6548 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.5204, allocations: 4 kB / 0.6548 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5204, allocations: 3.984 kB / 0.6548 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008489/0.5289, allocations: 5.279 MB / 0.6599 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/0.5289, allocations: 16 kB / 0.6599 GB, free: 8.852 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000797/0.5297, allocations: 219.6 kB / 0.6601 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-05/0.5298, allocations: 24.75 kB / 0.6602 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.996e-05/0.5298, allocations: 36 kB / 0.6602 GB, free: 8.578 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.596e-05/0.5299, allocations: 35.92 kB / 0.6602 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.029e-05/0.5299, allocations: 27.81 kB / 0.6603 GB, free: 8.516 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.5322, allocations: 1.747 MB / 0.662 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005311/0.5327, allocations: 307.6 kB / 0.6623 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.533, allocations: 47.97 kB / 0.6623 GB, free: 6.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007249/0.5337, allocations: 43.98 kB / 0.6624 GB, free: 6.145 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.5339, allocations: 124 kB / 0.6625 GB, free: 6.023 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-05/0.534, allocations: 51.94 kB / 0.6625 GB, free: 5.973 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002325/0.5363, allocations: 1.522 MB / 0.664 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.7e-07/0.5363, allocations: 0 / 0.664 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002676/0.539, allocations: 0.5976 MB / 0.6646 GB, free: 3.84 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 66 * 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 (121): * Single equations (assignments): 121 * 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.002863/0.5419, allocations: 2.391 MB / 0.6669 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004077/0.546, allocations: 2.392 MB / 0.6693 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.546, allocations: 4 kB / 0.6693 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000868/0.5469, allocations: 0.5697 MB / 0.6698 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/0.5488, allocations: 360.3 kB / 0.6702 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03818/0.587, allocations: 25.48 MB / 0.695 GB, free: 1.371 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003046/0.5901, allocations: 2.469 MB / 0.6975 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002454/0.5925, allocations: 0.9493 MB / 0.6984 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001783/0.5943, allocations: 1.233 MB / 0.6996 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of SimCode: time 1.192e-06/0.5943, allocations: 4 kB / 0.6996 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3066/0.9009, allocations: 43.63 MB / 0.7422 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/15.11, allocations: 5.172 kB / 0.7422 GB, free: 181.1 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches