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.001565/0.001566, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001902/0.001902, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.437/1.437, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2069/0.2069, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 67.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3396, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01685/0.3565, allocations: 15.01 MB / 0.5331 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01151/0.368, allocations: 4.4 MB / 0.5374 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003811/0.3719, allocations: 77.47 kB / 0.5375 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00518/0.3771, allocations: 2.24 MB / 0.5396 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006711/0.3839, allocations: 2.066 MB / 0.5417 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001719/0.3856, allocations: 0.6144 MB / 0.5423 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007165/0.3928, allocations: 4.284 MB / 0.5464 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004786/0.3976, allocations: 3.164 MB / 0.5495 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003699/0.4014, allocations: 1.604 MB / 0.5511 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00404/0.4054, allocations: 2.231 MB / 0.5533 GB, free: 8.301 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00137/0.4068, allocations: 340 kB / 0.5536 GB, free: 7.969 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003117/0.41, allocations: 1.049 MB / 0.5546 GB, free: 6.918 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003067/0.4131, allocations: 1.991 MB / 0.5566 GB, free: 4.922 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004317/0.4174, allocations: 2.407 MB / 0.5589 GB, free: 2.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01131/0.4287, allocations: 7.812 MB / 0.5665 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.404e-05/0.4288, allocations: 0 / 0.5665 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4289, allocations: 0 / 0.5665 GB, free: 10.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000392/0.4292, allocations: 0 / 0.5665 GB, free: 10.66 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.0142/0.4435, allocations: 5.108 MB / 0.5715 GB, free: 5.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.4435, allocations: 8.031 kB / 0.5715 GB, free: 5.473 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002116/0.4457, allocations: 0.8603 MB / 0.5724 GB, free: 4.602 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01538/0.4611, allocations: 3.196 MB / 0.5755 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009318/0.4704, allocations: 2.709 MB / 0.5782 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004546/0.471, allocations: 254.4 kB / 0.5784 GB, free: 14.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002333/0.4733, allocations: 327.7 kB / 0.5787 GB, free: 14.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03598/0.5093, allocations: 12.23 MB / 0.5906 GB, free: 1.297 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003119/0.5097, allocations: 39.66 kB / 0.5907 GB, free: 1.258 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002409/0.5121, allocations: 155.8 kB / 0.5908 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007507/0.5197, allocations: 2.844 MB / 0.5936 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03576/0.5555, allocations: 11.13 MB / 0.6045 GB, free: 3.109 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07506/0.6306, allocations: 40.51 MB / 0.644 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009927/0.6406, allocations: 4.686 MB / 0.6486 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003646/0.6443, allocations: 2.431 MB / 0.651 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00147/0.6458, allocations: 1.319 MB / 0.6523 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.719e-05/0.6459, allocations: 52.56 kB / 0.6523 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 7.404e-06/0.6459, allocations: 0 / 0.6523 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.04553/0.6915, allocations: 18.69 MB / 0.6706 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.6916, allocations: 77.41 kB / 0.6707 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005679/0.6973, allocations: 3.18 MB / 0.6738 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003859/0.6977, allocations: 61.69 kB / 0.6738 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002456/0.7002, allocations: 3.11 MB / 0.6769 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001518/0.7017, allocations: 0.9751 MB / 0.6778 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002538/0.7042, allocations: 1.187 MB / 0.679 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.7044, allocations: 305.1 kB / 0.6793 GB, free: 4.777 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003901/0.7083, allocations: 2.456 MB / 0.6817 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006348/0.7146, allocations: 5.719 MB / 0.6872 GB, free: 10.99 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.7255, allocations: 8.969 MB / 0.696 GB, free: 436 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001344/0.7257, allocations: 40 kB / 0.696 GB, free: 396 kB / 0.545 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01799/0.7437, allocations: 8.976 MB / 0.7048 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/0.7439, allocations: 56 kB / 0.7049 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/0.7441, allocations: 112 kB / 0.705 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003122/0.7472, allocations: 1.051 MB / 0.706 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004536/0.7518, allocations: 1.345 MB / 0.7073 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00773/0.7596, allocations: 5.549 MB / 0.7127 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/0.7636, allocations: 323.7 kB / 0.713 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.7647, allocations: 340.1 kB / 0.7134 GB, free: 14.49 MB / 0.5762 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.004968/0.7697, allocations: 2.405 MB / 0.7157 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009315/0.7706, allocations: 315.9 kB / 0.716 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/0.7808, allocations: 5.368 MB / 0.7212 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.757e-05/0.7809, allocations: 47.98 kB / 0.7213 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/0.781, allocations: 4 kB / 0.7213 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/0.781, allocations: 11.95 kB / 0.7213 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3022/1.083, allocations: 13.03 MB / 0.734 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.426e-05/1.083, allocations: 11.62 kB / 0.734 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/1.085, allocations: 426.3 kB / 0.7344 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002549/1.088, allocations: 0.8883 MB / 0.7353 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002242/1.088, allocations: 56 kB / 0.7354 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005821/1.094, allocations: 4.828 MB / 0.7401 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.658e-05/1.094, allocations: 19.75 kB / 0.7401 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/1.105, allocations: 8.021 MB / 0.7479 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007624/1.105, allocations: 358.6 kB / 0.7483 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/1.106, allocations: 50.69 kB / 0.7483 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/1.107, allocations: 154.4 kB / 0.7485 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/1.107, allocations: 174 kB / 0.7486 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/1.108, allocations: 76.38 kB / 0.7487 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002534/1.11, allocations: 1.962 MB / 0.7506 GB, free: 172.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/1.11, allocations: 0 / 0.7506 GB, free: 172.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004308/1.114, allocations: 1.086 MB / 0.7517 GB, free: 172.1 MB / 0.5762 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.01008/1.125, allocations: 8.678 MB / 0.7602 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007071/1.132, allocations: 6.042 MB / 0.7661 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/1.132, allocations: 0 / 0.7661 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002294/1.134, allocations: 2.254 MB / 0.7683 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/1.136, allocations: 463 kB / 0.7687 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05229/1.189, allocations: 46.88 MB / 0.8145 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003555/1.192, allocations: 3.708 MB / 0.8181 GB, free: 105 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003856/1.196, allocations: 2.149 MB / 0.8202 GB, free: 102.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002276/1.198, allocations: 2.104 MB / 0.8223 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.132e-06/1.198, allocations: 0 / 0.8223 GB, free: 100.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0949/1.293, allocations: 66.74 MB / 0.8874 GB, free: 34.34 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.24/27.53, allocations: 8 kB / 0.8874 GB, free: 34.33 MB / 0.5762 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