Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001201/0.0012, allocations: 121.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 207.8 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 79.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3405, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.01146/0.352, allocations: 10.82 MB / 0.5411 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007665/0.3597, allocations: 3.411 MB / 0.5444 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.3618, allocations: 60.31 kB / 0.5445 GB, free: 2.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006278/0.3681, allocations: 3.281 MB / 0.5477 GB, free: 44 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002456/0.3706, allocations: 0.7924 MB / 0.5485 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.3723, allocations: 0.6588 MB / 0.5491 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002766/0.3751, allocations: 1.971 MB / 0.551 GB, free: 12.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004181/0.3793, allocations: 3.93 MB / 0.5549 GB, free: 8.746 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.3812, allocations: 1.239 MB / 0.5561 GB, free: 7.504 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.3839, allocations: 1.644 MB / 0.5577 GB, free: 5.855 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008369/0.3848, allocations: 343.9 kB / 0.558 GB, free: 5.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.3866, allocations: 0.9208 MB / 0.5589 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001566/0.3882, allocations: 1.512 MB / 0.5604 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00168/0.3899, allocations: 1.741 MB / 0.5621 GB, free: 1.332 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005342/0.3952, allocations: 5.677 MB / 0.5676 GB, free: 11.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3952, allocations: 0 / 0.5676 GB, free: 11.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3953, allocations: 0 / 0.5676 GB, free: 11.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001019/0.3954, allocations: 3.984 kB / 0.5676 GB, free: 11.63 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.006709/0.4021, allocations: 3.725 MB / 0.5713 GB, free: 7.844 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.4021, allocations: 8.031 kB / 0.5713 GB, free: 7.836 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006193/0.4028, allocations: 0.5329 MB / 0.5718 GB, free: 7.293 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002034/0.4048, allocations: 0.5779 MB / 0.5724 GB, free: 6.711 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002922/0.4077, allocations: 1.767 MB / 0.5741 GB, free: 4.895 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.4079, allocations: 213.6 kB / 0.5743 GB, free: 4.684 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004155/0.4083, allocations: 275.9 kB / 0.5745 GB, free: 4.414 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01294/0.4213, allocations: 7.622 MB / 0.582 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.612e-05/0.4214, allocations: 19.81 kB / 0.582 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002841/0.4217, allocations: 123.9 kB / 0.5821 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001439/0.4231, allocations: 1.099 MB / 0.5832 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.4352, allocations: 6.182 MB / 0.5892 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02981/0.4651, allocations: 22.81 MB / 0.6115 GB, free: 13.63 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006093/0.4712, allocations: 1.858 MB / 0.6133 GB, free: 11.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.4724, allocations: 0.8237 MB / 0.6141 GB, free: 10.93 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007507/0.4799, allocations: 5.869 MB / 0.6199 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.48, allocations: 39.22 kB / 0.6199 GB, free: 4.465 MB / 478.1 MB Notification: Performance of pre-optimization done (n=75): time 3.006e-06/0.48, allocations: 0 / 0.6199 GB, free: 4.465 MB / 478.1 MB Notification: Performance of matching and sorting (n=94): time 0.01427/0.4943, allocations: 4.446 MB / 0.6242 GB, free: 4 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.4944, allocations: 68.39 kB / 0.6243 GB, free: 15.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/0.4975, allocations: 2.274 MB / 0.6265 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.588e-05/0.4975, allocations: 41.7 kB / 0.6266 GB, free: 13.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.4988, allocations: 2.035 MB / 0.6286 GB, free: 11.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/0.4991, allocations: 375.3 kB / 0.6289 GB, free: 11.13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008125/0.4999, allocations: 0.6942 MB / 0.6296 GB, free: 10.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.5, allocations: 309 kB / 0.6299 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.5014, allocations: 0.8968 MB / 0.6308 GB, free: 9.227 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002531/0.504, allocations: 2.965 MB / 0.6337 GB, free: 5.227 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004218/0.5082, allocations: 4.217 MB / 0.6378 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.783e-05/0.5082, allocations: 24 kB / 0.6378 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.005659/0.5139, allocations: 3.762 MB / 0.6415 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.441e-05/0.514, allocations: 36 kB / 0.6415 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.029e-05/0.5141, allocations: 72 kB / 0.6416 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.805e-05/0.5142, allocations: 103.9 kB / 0.6417 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/0.5163, allocations: 0.7843 MB / 0.6424 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001084/0.5165, allocations: 147.4 kB / 0.6426 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.5182, allocations: 151.9 kB / 0.6427 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000222/0.5184, allocations: 200 kB / 0.6429 GB, free: 10.71 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 50 (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,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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],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 (436): * Single equations (assignments): 436 * 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.001844/0.5203, allocations: 1.422 MB / 0.6443 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002906/0.5206, allocations: 201.4 kB / 0.6445 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004316/0.521, allocations: 237 kB / 0.6447 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.5211, allocations: 12 kB / 0.6447 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5211, allocations: 0 / 0.6447 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.5211, allocations: 3.984 kB / 0.6447 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007441/0.5285, allocations: 5.336 MB / 0.65 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.508e-05/0.5286, allocations: 16 kB / 0.65 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006471/0.5292, allocations: 223.6 kB / 0.6502 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-05/0.5293, allocations: 24 kB / 0.6502 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.5293, allocations: 47.98 kB / 0.6503 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.43e-05/0.5294, allocations: 40.45 kB / 0.6503 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.746e-05/0.5294, allocations: 35.81 kB / 0.6503 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/0.5312, allocations: 1.719 MB / 0.652 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004869/0.5317, allocations: 294.3 kB / 0.6523 GB, free: 480 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002817/0.532, allocations: 47.98 kB / 0.6523 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007289/0.5327, allocations: 43.98 kB / 0.6524 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.5329, allocations: 143.3 kB / 0.6525 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.2e-05/0.5329, allocations: 56 kB / 0.6526 GB, free: 188 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001972/0.5349, allocations: 1.465 MB / 0.654 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.463e-06/0.5349, allocations: 4 kB / 0.654 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002436/0.5374, allocations: 0.5624 MB / 0.6545 GB, free: 14.14 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 86 * 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 (118): * Single equations (assignments): 118 * 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.002291/0.5397, allocations: 2.371 MB / 0.6569 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00333/0.543, allocations: 2.156 MB / 0.659 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.543, allocations: 0 / 0.659 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000669/0.5437, allocations: 0.5009 MB / 0.6595 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.5455, allocations: 378.9 kB / 0.6598 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03358/0.5791, allocations: 24.3 MB / 0.6835 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003389/0.5825, allocations: 2.456 MB / 0.6859 GB, free: 10.54 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002159/0.5847, allocations: 0.9058 MB / 0.6868 GB, free: 9.633 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.5863, allocations: 1.241 MB / 0.688 GB, free: 8.391 MB / 0.545 GB Notification: Performance of SimCode: time 1.423e-06/0.5863, allocations: 0 / 0.688 GB, free: 8.391 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.304/0.8903, allocations: 41.5 MB / 0.7286 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/14.06, allocations: 8.438 kB / 0.7286 GB, free: 175.7 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches