Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",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.0008651/0.0008652, allocations: 94.42 kB / 17.35 MB, free: 6.367 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.0009246/0.0009247, allocations: 172.4 kB / 18.25 MB, free: 5.523 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.275/1.275, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1844/0.1844, allocations: 44.24 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003212, allocations: 8 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09856, allocations: 61.92 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2368/0.3354, allocations: 45.11 MB / 0.5053 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.3529, allocations: 9.584 MB / 0.5147 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007959/0.361, allocations: 191.6 kB / 0.5149 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002093/0.3631, allocations: 0.5027 MB / 0.5154 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005188/0.3683, allocations: 1.893 MB / 0.5172 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.3697, allocations: 0.5683 MB / 0.5178 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006732/0.3765, allocations: 6.002 MB / 0.5236 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00498/0.3815, allocations: 3.909 MB / 0.5275 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002182/0.3837, allocations: 1.231 MB / 0.5287 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.3861, allocations: 2.124 MB / 0.5307 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000432/0.3866, allocations: 167.7 kB / 0.5309 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001796/0.3884, allocations: 0.94 MB / 0.5318 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.3897, allocations: 1.832 MB / 0.5336 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.3912, allocations: 2.215 MB / 0.5358 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005846/0.397, allocations: 7.213 MB / 0.5428 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.397, allocations: 0 / 0.5428 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3971, allocations: 0 / 0.5428 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001504/0.3972, allocations: 0 / 0.5428 GB, free: 13.02 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.00671/0.4039, allocations: 4.16 MB / 0.5469 GB, free: 9.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.404, allocations: 8.031 kB / 0.5469 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009286/0.4049, allocations: 0.854 MB / 0.5477 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.4155, allocations: 3.289 MB / 0.5509 GB, free: 5.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005218/0.4208, allocations: 2.678 MB / 0.5535 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.421, allocations: 251.1 kB / 0.5538 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007894/0.4217, allocations: 332.4 kB / 0.5541 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0175/0.4393, allocations: 12.25 MB / 0.566 GB, free: 5.516 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.474e-05/0.4394, allocations: 27.72 kB / 0.5661 GB, free: 5.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00039/0.4398, allocations: 161.8 kB / 0.5662 GB, free: 5.379 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004598/0.4444, allocations: 2.841 MB / 0.569 GB, free: 2.551 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01949/0.4639, allocations: 11.14 MB / 0.5799 GB, free: 7.402 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05385/0.5178, allocations: 40.72 MB / 0.6196 GB, free: 13.87 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008784/0.5266, allocations: 4.696 MB / 0.6242 GB, free: 8.949 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003034/0.5297, allocations: 2.428 MB / 0.6266 GB, free: 6.52 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/0.5308, allocations: 1.322 MB / 0.6279 GB, free: 4.984 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.5308, allocations: 56.56 kB / 0.6279 GB, free: 4.922 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 8.907e-06/0.5308, allocations: 0 / 0.6279 GB, free: 4.922 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04154/0.5724, allocations: 18.68 MB / 0.6462 GB, free: 2.105 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.5725, allocations: 73.41 kB / 0.6463 GB, free: 2.023 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004661/0.5771, allocations: 3.188 MB / 0.6494 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001747/0.5773, allocations: 57.7 kB / 0.6494 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.5793, allocations: 3.116 MB / 0.6525 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008179/0.5801, allocations: 0.9706 MB / 0.6534 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006507/0.5808, allocations: 0.5228 MB / 0.6539 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.818e-05/0.5808, allocations: 301.1 kB / 0.6542 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003395/0.5842, allocations: 2.459 MB / 0.6566 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005402/0.5897, allocations: 5.719 MB / 0.6622 GB, free: 64 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009762/0.5994, allocations: 8.977 MB / 0.671 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.517e-05/0.5995, allocations: 32 kB / 0.671 GB, free: 5.461 MB / 0.5137 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01474/0.6143, allocations: 8.978 MB / 0.6798 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-05/0.6144, allocations: 62.56 kB / 0.6798 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001539/0.6146, allocations: 112 kB / 0.6799 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002991/0.6176, allocations: 1.051 MB / 0.681 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004261/0.6219, allocations: 1.341 MB / 0.6823 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006698/0.6286, allocations: 5.143 MB / 0.6873 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/0.6322, allocations: 323.8 kB / 0.6876 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007008/0.6329, allocations: 340 kB / 0.6879 GB, free: 3.977 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 (725): * Single equations (assignments): 718 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003989/0.6369, allocations: 2.415 MB / 0.6903 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005176/0.6374, allocations: 311.9 kB / 0.6906 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009314/0.6467, allocations: 5.371 MB / 0.6958 GB, free: 11.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.86e-05/0.6468, allocations: 47.98 kB / 0.6959 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.6468, allocations: 4 kB / 0.6959 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.6468, allocations: 11.95 kB / 0.6959 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2218/0.8687, allocations: 13.07 MB / 0.7086 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-05/0.8688, allocations: 14.56 kB / 0.7087 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002054/0.8708, allocations: 424.3 kB / 0.7091 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003027/0.8739, allocations: 0.8922 MB / 0.7099 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003752/0.8743, allocations: 55.88 kB / 0.71 GB, free: 197.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005927/0.8802, allocations: 4.492 MB / 0.7144 GB, free: 195.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-05/0.8802, allocations: 19.78 kB / 0.7144 GB, free: 195.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/0.8923, allocations: 8.017 MB / 0.7222 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007507/0.8931, allocations: 370.4 kB / 0.7226 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006345/0.8938, allocations: 50.25 kB / 0.7226 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/0.8956, allocations: 148.6 kB / 0.7228 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005103/0.8961, allocations: 170.5 kB / 0.7229 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002614/0.8964, allocations: 81.02 kB / 0.723 GB, free: 193.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003944/0.9003, allocations: 1.962 MB / 0.7249 GB, free: 192.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9004, allocations: 2.562 kB / 0.7249 GB, free: 192.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004561/0.9049, allocations: 1.083 MB / 0.726 GB, free: 192.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (208): * Single equations (assignments): 201 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01027/0.9152, allocations: 8.685 MB / 0.7345 GB, free: 188.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007284/0.9225, allocations: 5.99 MB / 0.7403 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/0.9225, allocations: 0 / 0.7403 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002577/0.9251, allocations: 2.242 MB / 0.7425 GB, free: 186 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007065/0.9322, allocations: 442.1 kB / 0.7429 GB, free: 185.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06545/0.9977, allocations: 53.73 MB / 0.7954 GB, free: 129 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004394/1.002, allocations: 3.704 MB / 0.799 GB, free: 125.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004406/1.007, allocations: 2.158 MB / 0.8011 GB, free: 123.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002515/1.009, allocations: 2.1 MB / 0.8032 GB, free: 121 MB / 0.545 GB Notification: Performance of SimCode: time 9.02e-07/1.009, allocations: 8 kB / 0.8032 GB, free: 121 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08148/1.091, allocations: 67.69 MB / 0.8693 GB, free: 53.63 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001555/1.091, allocations: 209.6 kB / 0.8695 GB, free: 53.38 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.198/4.288, allocations: 3.938 kB / 0.8695 GB, free: 53.37 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches