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.001081/0.001081, allocations: 107.7 kB / 17.21 MB, free: 6.289 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.001068/0.001068, allocations: 194 kB / 18.12 MB, free: 5.379 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.379/1.379, allocations: 222.9 MB / 241.8 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2206/0.2206, allocations: 44.18 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 67.8 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1337, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.3042/0.4379, allocations: 50.86 MB / 0.5073 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02394/0.4619, allocations: 10.3 MB / 0.5174 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01134/0.4732, allocations: 208.2 kB / 0.5176 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007126/0.4804, allocations: 3.902 MB / 0.5214 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002443/0.4829, allocations: 0.8011 MB / 0.5222 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002194/0.4851, allocations: 0.8011 MB / 0.523 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004637/0.4898, allocations: 3.713 MB / 0.5266 GB, free: 6.441 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006924/0.4967, allocations: 4.826 MB / 0.5313 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.4994, allocations: 1.265 MB / 0.5325 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002455/0.5018, allocations: 1.999 MB / 0.5345 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005272/0.5024, allocations: 301.2 kB / 0.5348 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001696/0.5041, allocations: 1.048 MB / 0.5358 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.5052, allocations: 1.633 MB / 0.5374 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.5067, allocations: 1.901 MB / 0.5392 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005866/0.5125, allocations: 6.92 MB / 0.546 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5126, allocations: 0 / 0.546 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.5126, allocations: 0 / 0.546 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001249/0.5127, allocations: 0 / 0.546 GB, free: 10.66 MB / 398.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.009143/0.5218, allocations: 4.327 MB / 0.5502 GB, free: 6.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.5219, allocations: 8.031 kB / 0.5502 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008078/0.5227, allocations: 0.5901 MB / 0.5508 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002878/0.5256, allocations: 0.6516 MB / 0.5514 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004179/0.5298, allocations: 2.214 MB / 0.5536 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.53, allocations: 238.7 kB / 0.5538 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005779/0.5306, allocations: 314.7 kB / 0.5541 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01989/0.5505, allocations: 9.432 MB / 0.5633 GB, free: 8.629 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-05/0.5506, allocations: 11.88 kB / 0.5634 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003952/0.551, allocations: 139.8 kB / 0.5635 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002152/0.5531, allocations: 1.186 MB / 0.5647 GB, free: 7.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01907/0.5722, allocations: 8.628 MB / 0.5731 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03939/0.6117, allocations: 27.26 MB / 0.5997 GB, free: 3.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009744/0.6214, allocations: 3.105 MB / 0.6027 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.6238, allocations: 1.659 MB / 0.6043 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.6368, allocations: 8.995 MB / 0.6131 GB, free: 4.859 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.6369, allocations: 39.56 kB / 0.6132 GB, free: 4.812 MB / 462.1 MB Notification: Performance of pre-optimization done (n=93): time 3.316e-06/0.6369, allocations: 0 / 0.6132 GB, free: 4.812 MB / 462.1 MB Notification: Performance of matching and sorting (n=110): time 0.02529/0.6622, allocations: 7.721 MB / 0.6207 GB, free: 13.09 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.6623, allocations: 64.41 kB / 0.6208 GB, free: 13.01 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004146/0.6664, allocations: 2.615 MB / 0.6233 GB, free: 10.37 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.6666, allocations: 44.12 kB / 0.6234 GB, free: 10.32 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001563/0.6682, allocations: 2.137 MB / 0.6255 GB, free: 8.184 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005296/0.6688, allocations: 444.2 kB / 0.6259 GB, free: 7.754 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001272/0.6701, allocations: 0.7696 MB / 0.6266 GB, free: 6.977 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.6702, allocations: 309 kB / 0.6269 GB, free: 6.672 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002189/0.6724, allocations: 1.428 MB / 0.6283 GB, free: 5.242 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/0.6761, allocations: 3.5 MB / 0.6317 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00648/0.6826, allocations: 5.192 MB / 0.6368 GB, free: 10.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.772e-05/0.6828, allocations: 20 kB / 0.6368 GB, free: 10.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.008516/0.6913, allocations: 4.91 MB / 0.6416 GB, free: 5.578 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.182e-05/0.6914, allocations: 36 kB / 0.6417 GB, free: 5.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/0.6915, allocations: 72 kB / 0.6417 GB, free: 5.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001284/0.6917, allocations: 100 kB / 0.6418 GB, free: 5.375 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003161/0.6948, allocations: 0.889 MB / 0.6427 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000145/0.695, allocations: 147.4 kB / 0.6428 GB, free: 4.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/0.6977, allocations: 211.8 kB / 0.643 GB, free: 4.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004002/0.6981, allocations: 212 kB / 0.6432 GB, free: 3.926 MB / 494.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.003814/0.7019, allocations: 1.593 MB / 0.6448 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007322/0.7026, allocations: 221.1 kB / 0.645 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.7064, allocations: 2.106 MB / 0.6471 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.7065, allocations: 12 kB / 0.6471 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7065, allocations: 0 / 0.6471 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.7065, allocations: 7.984 kB / 0.6471 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.7171, allocations: 6.061 MB / 0.653 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/0.7171, allocations: 12 kB / 0.653 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.7182, allocations: 259.5 kB / 0.6533 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.859e-05/0.7182, allocations: 20 kB / 0.6533 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.7183, allocations: 36 kB / 0.6533 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.636e-05/0.7184, allocations: 27.92 kB / 0.6533 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.83e-05/0.7184, allocations: 20.41 kB / 0.6534 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.7215, allocations: 2.181 MB / 0.6555 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007644/0.7222, allocations: 314.1 kB / 0.6558 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004812/0.7227, allocations: 43.92 kB / 0.6558 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.7238, allocations: 59.95 kB / 0.6559 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.724, allocations: 132.2 kB / 0.656 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.564e-05/0.7241, allocations: 48 kB / 0.6561 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00282/0.7269, allocations: 1.668 MB / 0.6577 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.727, allocations: 0 / 0.6577 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003299/0.7303, allocations: 0.6719 MB / 0.6583 GB, free: 3.965 MB / 0.4981 GB 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 (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.003594/0.7339, allocations: 2.824 MB / 0.6611 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005231/0.7391, allocations: 3.056 MB / 0.6641 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/0.7391, allocations: 4 kB / 0.6641 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.7403, allocations: 0.8143 MB / 0.6649 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.7425, allocations: 348.5 kB / 0.6652 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05412/0.7966, allocations: 32.72 MB / 0.6972 GB, free: 7.887 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003852/0.8005, allocations: 2.667 MB / 0.6998 GB, free: 5.191 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002925/0.8034, allocations: 0.9462 MB / 0.7007 GB, free: 4.238 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002627/0.8061, allocations: 1.378 MB / 0.702 GB, free: 2.859 MB / 0.545 GB Notification: Performance of SimCode: time 1.462e-06/0.8061, allocations: 0 / 0.702 GB, free: 2.859 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3049/1.111, allocations: 50.02 MB / 0.7509 GB, free: 179.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/1.111, allocations: 192.9 kB / 0.7511 GB, free: 179.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.916/4.028, allocations: 0 / 0.7511 GB, free: 179.2 MB / 0.545 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/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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/JointRRR/JointRRR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches