Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_JointRRR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRR,fileNamePrefix="ModelicaTest_3_2_3_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.001274/0.001274, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 202.1 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.1 MB / 222.6 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3052/0.3052, allocations: 43.5 MB / 313.5 MB, free: 8.266 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 66.56 kB / 382.1 MB, free: 8.406 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09712/0.09845, allocations: 57.78 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRR): time 0.2306/0.3291, allocations: 52.63 MB / 492.6 MB, free: 17.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02203/0.3512, allocations: 10.45 MB / 0.4912 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01229/0.3636, allocations: 215.3 kB / 0.4914 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006576/0.3702, allocations: 3.941 MB / 0.4953 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002949/0.3732, allocations: 0.9426 MB / 0.4962 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.3751, allocations: 0.8038 MB / 0.497 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005227/0.3803, allocations: 4.207 MB / 0.5011 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00607/0.3864, allocations: 4.96 MB / 0.5059 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002479/0.3889, allocations: 1.368 MB / 0.5073 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003635/0.3925, allocations: 2.128 MB / 0.5093 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009341/0.3935, allocations: 314.3 kB / 0.5096 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002537/0.396, allocations: 1.034 MB / 0.5106 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002198/0.3983, allocations: 1.803 MB / 0.5124 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002252/0.4005, allocations: 2.105 MB / 0.5145 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007303/0.4078, allocations: 7.444 MB / 0.5217 GB, free: 12.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4079, allocations: 0 / 0.5217 GB, free: 12.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.4079, allocations: 0 / 0.5217 GB, free: 12.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002249/0.4081, allocations: 0 / 0.5217 GB, free: 12.56 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: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.01316/0.4213, allocations: 4.739 MB / 0.5264 GB, free: 8.602 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.4213, allocations: 12.03 kB / 0.5264 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001518/0.4229, allocations: 0.6775 MB / 0.527 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003133/0.426, allocations: 0.6548 MB / 0.5277 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004447/0.4305, allocations: 2.289 MB / 0.5299 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.4307, allocations: 274.9 kB / 0.5302 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006953/0.4314, allocations: 347.9 kB / 0.5305 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02044/0.4518, allocations: 10.48 MB / 0.5407 GB, free: 9.473 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.077e-05/0.4519, allocations: 11.88 kB / 0.5407 GB, free: 9.461 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/0.4523, allocations: 155.9 kB / 0.5409 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002929/0.4553, allocations: 1.636 MB / 0.5425 GB, free: 7.672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01904/0.4743, allocations: 9.154 MB / 0.5514 GB, free: 14.51 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04389/0.5182, allocations: 30.73 MB / 0.5814 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008748/0.527, allocations: 3.113 MB / 0.5845 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001961/0.529, allocations: 1.661 MB / 0.5861 GB, free: 10.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01111/0.5402, allocations: 9.324 MB / 0.5952 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.5402, allocations: 51.55 kB / 0.5953 GB, free: 464 kB / 462.1 MB Notification: Performance of pre-optimization done (n=91): time 3.757e-06/0.5402, allocations: 0 / 0.5953 GB, free: 464 kB / 462.1 MB Notification: Performance of matching and sorting (n=108): time 0.02528/0.5655, allocations: 8.992 MB / 0.604 GB, free: 7.426 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.292e-05/0.5656, allocations: 123.8 kB / 0.6042 GB, free: 7.281 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.5695, allocations: 2.887 MB / 0.607 GB, free: 4.383 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.5697, allocations: 49.7 kB / 0.607 GB, free: 4.328 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.5713, allocations: 2.505 MB / 0.6095 GB, free: 1.789 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004909/0.5718, allocations: 438.6 kB / 0.6099 GB, free: 1.355 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001143/0.5729, allocations: 0.8408 MB / 0.6107 GB, free: 0.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.573, allocations: 301.1 kB / 0.611 GB, free: 208 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/0.5753, allocations: 1.488 MB / 0.6125 GB, free: 14.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003901/0.5792, allocations: 3.832 MB / 0.6162 GB, free: 9.691 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006257/0.5854, allocations: 5.612 MB / 0.6217 GB, free: 2.922 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.972e-05/0.5855, allocations: 24 kB / 0.6217 GB, free: 2.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=526) (initialization): time 0.00803/0.5936, allocations: 5.277 MB / 0.6269 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.5936, allocations: 44 kB / 0.6269 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.125e-05/0.5937, allocations: 80 kB / 0.627 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.384e-05/0.5938, allocations: 112 kB / 0.6271 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003128/0.597, allocations: 0.9942 MB / 0.6281 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000132/0.5971, allocations: 163.7 kB / 0.6282 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/0.5999, allocations: 231.5 kB / 0.6284 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/0.6002, allocations: 240 kB / 0.6287 GB, free: 11.77 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 49 (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 (524): * Single equations (assignments): 523 * 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.002568/0.6028, allocations: 1.758 MB / 0.6304 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003929/0.6032, allocations: 244.8 kB / 0.6306 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003006/0.6062, allocations: 2.054 MB / 0.6326 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.6062, allocations: 19.94 kB / 0.6326 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.6063, allocations: 7.938 kB / 0.6326 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.6063, allocations: 7.922 kB / 0.6326 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009933/0.6162, allocations: 6.66 MB / 0.6392 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.6163, allocations: 16 kB / 0.6392 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009432/0.6172, allocations: 255.5 kB / 0.6394 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.958e-05/0.6172, allocations: 24 kB / 0.6394 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.587e-05/0.6173, allocations: 40 kB / 0.6395 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.017e-05/0.6173, allocations: 31.86 kB / 0.6395 GB, free: 356 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/0.6174, allocations: 19.88 kB / 0.6395 GB, free: 336 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1941/0.8114, allocations: 2.204 MB / 0.6417 GB, free: 155.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005088/0.812, allocations: 333.4 kB / 0.642 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.8122, allocations: 39.44 kB / 0.642 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008824/0.8131, allocations: 60.86 kB / 0.6421 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.8133, allocations: 127.1 kB / 0.6422 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.277e-05/0.8134, allocations: 49.62 kB / 0.6423 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002149/0.8155, allocations: 1.848 MB / 0.6441 GB, free: 155.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.373e-06/0.8155, allocations: 0 / 0.6441 GB, free: 155.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002815/0.8184, allocations: 0.7477 MB / 0.6448 GB, free: 155.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (134): * Single equations (assignments): 134 * 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.002366/0.8207, allocations: 2.842 MB / 0.6476 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003725/0.8245, allocations: 3.195 MB / 0.6507 GB, free: 152.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.8245, allocations: 3.156 kB / 0.6507 GB, free: 152.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008065/0.8253, allocations: 0.8043 MB / 0.6515 GB, free: 152.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.8269, allocations: 320.3 kB / 0.6518 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04621/0.8732, allocations: 36.27 MB / 0.6872 GB, free: 125.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0029/0.8761, allocations: 2.95 MB / 0.6901 GB, free: 124.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002727/0.8788, allocations: 1.023 MB / 0.6911 GB, free: 124.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001716/0.8806, allocations: 1.613 MB / 0.6927 GB, free: 122.9 MB / 0.4981 GB Notification: Performance of SimCode: time 8.41e-07/0.8806, allocations: 4 kB / 0.6927 GB, free: 122.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07146/0.952, allocations: 53 MB / 0.7444 GB, free: 84.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.9523, allocations: 204.4 kB / 0.7446 GB, free: 84.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.767/4.72, allocations: 0 / 0.7446 GB, free: 84.27 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointRRR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointRRR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/JointRRR/JointRRR.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointRRR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches