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.001778/0.001778, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002143/0.002143, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2343/0.2343, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 75.88 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3367, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01245/0.3492, allocations: 10.81 MB / 0.5411 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008457/0.3577, allocations: 3.625 MB / 0.5446 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002375/0.3602, allocations: 59.66 kB / 0.5447 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006107/0.3663, allocations: 3.238 MB / 0.5478 GB, free: 15.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002707/0.3691, allocations: 0.8265 MB / 0.5487 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002251/0.3714, allocations: 0.8187 MB / 0.5494 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00317/0.3746, allocations: 2.069 MB / 0.5515 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004549/0.3791, allocations: 3.997 MB / 0.5554 GB, free: 8.215 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002198/0.3814, allocations: 1.278 MB / 0.5566 GB, free: 6.934 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002584/0.384, allocations: 1.679 MB / 0.5583 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.3851, allocations: 355.9 kB / 0.5586 GB, free: 4.902 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00256/0.3877, allocations: 1.038 MB / 0.5596 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002111/0.3898, allocations: 1.532 MB / 0.5611 GB, free: 2.328 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003054/0.3929, allocations: 1.753 MB / 0.5628 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007506/0.4004, allocations: 5.858 MB / 0.5685 GB, free: 10.69 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4005, allocations: 0 / 0.5685 GB, free: 10.69 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4005, allocations: 4 kB / 0.5685 GB, free: 10.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000207/0.4007, allocations: 0 / 0.5685 GB, free: 10.68 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.01005/0.4107, allocations: 3.977 MB / 0.5724 GB, free: 6.637 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.4108, allocations: 12.03 kB / 0.5724 GB, free: 6.625 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009025/0.4117, allocations: 0.541 MB / 0.573 GB, free: 6.074 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002373/0.4141, allocations: 0.5995 MB / 0.5736 GB, free: 5.473 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004061/0.4182, allocations: 1.833 MB / 0.5753 GB, free: 3.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.4184, allocations: 209.4 kB / 0.5755 GB, free: 3.383 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006706/0.419, allocations: 271.9 kB / 0.5758 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0165/0.4355, allocations: 8.168 MB / 0.5838 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.961e-05/0.4357, allocations: 15.88 kB / 0.5838 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003667/0.436, allocations: 123.9 kB / 0.5839 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001663/0.4377, allocations: 1.122 MB / 0.585 GB, free: 9.336 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01523/0.453, allocations: 6.959 MB / 0.5918 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03401/0.487, allocations: 24.67 MB / 0.6159 GB, free: 9.105 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007576/0.4946, allocations: 2.274 MB / 0.6181 GB, free: 6.82 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.4962, allocations: 1.093 MB / 0.6192 GB, free: 5.727 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/0.5063, allocations: 7.198 MB / 0.6262 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.5064, allocations: 43.22 kB / 0.6263 GB, free: 13.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=80): time 2.605e-06/0.5064, allocations: 0 / 0.6263 GB, free: 13.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01851/0.5249, allocations: 5.452 MB / 0.6316 GB, free: 8.426 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.525, allocations: 64.41 kB / 0.6316 GB, free: 8.352 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003152/0.5282, allocations: 2.408 MB / 0.634 GB, free: 5.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.667e-05/0.5282, allocations: 41.7 kB / 0.634 GB, free: 5.867 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.5296, allocations: 2.145 MB / 0.6361 GB, free: 3.699 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003176/0.5299, allocations: 401 kB / 0.6365 GB, free: 3.305 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008337/0.5308, allocations: 0.7187 MB / 0.6372 GB, free: 2.578 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.5309, allocations: 301.1 kB / 0.6375 GB, free: 2.281 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.5324, allocations: 1.034 MB / 0.6385 GB, free: 1.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00297/0.5354, allocations: 3.193 MB / 0.6416 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00504/0.5404, allocations: 4.573 MB / 0.6461 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.172e-05/0.5405, allocations: 24 kB / 0.6461 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of matching and sorting (n=452) (initialization): time 0.006214/0.5467, allocations: 4.131 MB / 0.6502 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/0.5468, allocations: 38.03 kB / 0.6502 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.656e-05/0.5468, allocations: 76 kB / 0.6503 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001041/0.5469, allocations: 108 kB / 0.6504 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002353/0.5493, allocations: 0.8383 MB / 0.6512 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001133/0.5494, allocations: 151.4 kB / 0.6513 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/0.5514, allocations: 175.9 kB / 0.6515 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/0.5516, allocations: 212 kB / 0.6517 GB, free: 1.586 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.002165/0.5538, allocations: 1.43 MB / 0.6531 GB, free: 148 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002905/0.5541, allocations: 218.5 kB / 0.6533 GB, free: 15.93 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/0.5563, allocations: 1.414 MB / 0.6547 GB, free: 14.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-05/0.5564, allocations: 12 kB / 0.6547 GB, free: 14.49 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.5564, allocations: 0 / 0.6547 GB, free: 14.49 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.5564, allocations: 7.984 kB / 0.6547 GB, free: 14.48 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007973/0.5644, allocations: 5.288 MB / 0.6599 GB, free: 8.898 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.5644, allocations: 16.03 kB / 0.6599 GB, free: 8.883 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.5651, allocations: 215.6 kB / 0.6601 GB, free: 8.672 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-05/0.5652, allocations: 20 kB / 0.6601 GB, free: 8.652 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.256e-05/0.5652, allocations: 40 kB / 0.6601 GB, free: 8.613 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.558e-05/0.5653, allocations: 31.86 kB / 0.6602 GB, free: 8.582 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.817e-05/0.5653, allocations: 27.81 kB / 0.6602 GB, free: 8.555 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.5673, allocations: 1.754 MB / 0.6619 GB, free: 6.586 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000501/0.5679, allocations: 307.6 kB / 0.6622 GB, free: 6.266 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.5681, allocations: 39.98 kB / 0.6622 GB, free: 6.227 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/0.5688, allocations: 43.98 kB / 0.6623 GB, free: 6.184 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.5689, allocations: 128 kB / 0.6624 GB, free: 6.059 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.427e-05/0.569, allocations: 48 kB / 0.6625 GB, free: 6.012 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002052/0.571, allocations: 1.525 MB / 0.6639 GB, free: 4.473 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.31e-07/0.5711, allocations: 0 / 0.6639 GB, free: 4.473 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.002805/0.5739, allocations: 0.5898 MB / 0.6645 GB, free: 3.883 MB / 0.5138 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.002679/0.5766, allocations: 2.395 MB / 0.6669 GB, free: 1.262 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00413/0.5807, allocations: 2.4 MB / 0.6692 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.5807, allocations: 0.9375 kB / 0.6692 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007765/0.5815, allocations: 0.5687 MB / 0.6698 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.5834, allocations: 368.5 kB / 0.6701 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03578/0.6192, allocations: 25.5 MB / 0.695 GB, free: 1.387 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002635/0.6219, allocations: 2.45 MB / 0.6974 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002302/0.6242, allocations: 0.9532 MB / 0.6983 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001573/0.6258, allocations: 1.233 MB / 0.6995 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of SimCode: time 9.42e-07/0.6258, allocations: 0 / 0.6995 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3494/0.9752, allocations: 43.63 MB / 0.7421 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.71, allocations: 3.938 kB / 0.7421 GB, free: 180.8 MB / 0.5763 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.csv","/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