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: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 113.8 kB / 17.78 MB, free: 5.266 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.0011/0.001101, allocations: 183.1 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2053/0.2053, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 67.91 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4599/0.4611, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01723/0.4784, allocations: 15.01 MB / 0.5336 GB, free: 8.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.4906, allocations: 4.408 MB / 0.5379 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005038/0.4957, allocations: 80.75 kB / 0.5379 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005522/0.5013, allocations: 2.225 MB / 0.5401 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00724/0.5086, allocations: 2.02 MB / 0.5421 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002369/0.511, allocations: 0.6115 MB / 0.5427 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008833/0.5198, allocations: 4.29 MB / 0.5469 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004599/0.5245, allocations: 3.153 MB / 0.55 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003522/0.528, allocations: 1.573 MB / 0.5515 GB, free: 10.55 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003942/0.532, allocations: 2.223 MB / 0.5537 GB, free: 8.324 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001261/0.5333, allocations: 344 kB / 0.554 GB, free: 7.988 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003025/0.5363, allocations: 1.057 MB / 0.555 GB, free: 6.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002417/0.5388, allocations: 1.991 MB / 0.557 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003078/0.5419, allocations: 2.392 MB / 0.5593 GB, free: 2.527 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01235/0.5542, allocations: 7.836 MB / 0.567 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.404e-05/0.5543, allocations: 3.938 kB / 0.567 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.5543, allocations: 0 / 0.567 GB, free: 10.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004676/0.5548, allocations: 7.984 kB / 0.567 GB, free: 10.65 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.01408/0.5689, allocations: 5.227 MB / 0.5721 GB, free: 5.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.569, allocations: 12.03 kB / 0.5721 GB, free: 5.328 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01105/0.58, allocations: 3.219 MB / 0.5752 GB, free: 2.102 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005878/0.5859, allocations: 2.421 MB / 0.5776 GB, free: 15.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002308/0.5862, allocations: 242.6 kB / 0.5778 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/0.5875, allocations: 339.7 kB / 0.5781 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02173/0.6093, allocations: 12.23 MB / 0.5901 GB, free: 2.281 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/0.6094, allocations: 35.7 kB / 0.5901 GB, free: 2.246 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004542/0.6099, allocations: 151.8 kB / 0.5903 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004905/0.6148, allocations: 2.848 MB / 0.593 GB, free: 15.24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02239/0.6372, allocations: 11.12 MB / 0.6039 GB, free: 4.102 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06404/0.7013, allocations: 40.6 MB / 0.6436 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009602/0.7109, allocations: 4.687 MB / 0.6481 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003556/0.7145, allocations: 2.439 MB / 0.6505 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001219/0.7158, allocations: 1.319 MB / 0.6518 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/0.7158, allocations: 52.56 kB / 0.6519 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 4.639e-06/0.7159, allocations: 0 / 0.6519 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.05242/0.7683, allocations: 18.77 MB / 0.6702 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.7684, allocations: 77.41 kB / 0.6703 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005749/0.7742, allocations: 3.173 MB / 0.6734 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003758/0.7746, allocations: 61.7 kB / 0.6734 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003116/0.7777, allocations: 3.253 MB / 0.6766 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001357/0.7791, allocations: 1.011 MB / 0.6776 GB, free: 6.949 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002379/0.7815, allocations: 1.192 MB / 0.6788 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.7816, allocations: 305.1 kB / 0.679 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003717/0.7853, allocations: 2.467 MB / 0.6815 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006016/0.7914, allocations: 5.727 MB / 0.687 GB, free: 11.64 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01101/0.8024, allocations: 8.984 MB / 0.6958 GB, free: 1.059 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/0.8025, allocations: 32 kB / 0.6958 GB, free: 1.027 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01687/0.8194, allocations: 9.033 MB / 0.7047 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.611e-05/0.8195, allocations: 52 kB / 0.7047 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/0.8198, allocations: 115.9 kB / 0.7048 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00306/0.8228, allocations: 1.051 MB / 0.7059 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004449/0.8273, allocations: 1.353 MB / 0.7072 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007808/0.8351, allocations: 5.538 MB / 0.7126 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00427/0.8394, allocations: 331.7 kB / 0.7129 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008067/0.8402, allocations: 336 kB / 0.7132 GB, free: 15.08 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 (729): * Single equations (assignments): 722 * 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.004833/0.8451, allocations: 2.405 MB / 0.7156 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006975/0.8458, allocations: 329.8 kB / 0.7159 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009946/0.8557, allocations: 5.379 MB / 0.7211 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.808e-05/0.8558, allocations: 48.06 kB / 0.7212 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.293e-05/0.8559, allocations: 0 / 0.7212 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.8559, allocations: 11.97 kB / 0.7212 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3528/1.209, allocations: 13.02 MB / 0.7339 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/1.209, allocations: 11.02 kB / 0.7339 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/1.21, allocations: 422.3 kB / 0.7343 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/1.213, allocations: 0.891 MB / 0.7352 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001683/1.213, allocations: 52.91 kB / 0.7352 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005873/1.219, allocations: 4.836 MB / 0.74 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/1.219, allocations: 17.25 kB / 0.74 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/1.23, allocations: 8.039 MB / 0.7478 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007302/1.231, allocations: 376.8 kB / 0.7482 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/1.231, allocations: 53.62 kB / 0.7482 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/1.233, allocations: 158.2 kB / 0.7484 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/1.233, allocations: 173.1 kB / 0.7486 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/1.233, allocations: 73.72 kB / 0.7486 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002494/1.236, allocations: 1.956 MB / 0.7505 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.41e-07/1.236, allocations: 0 / 0.7505 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004165/1.24, allocations: 1.089 MB / 0.7516 GB, free: 172 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.0004332/1.24, allocations: 194.4 kB / 0.7518 GB, free: 171.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007402/1.248, allocations: 6.05 MB / 0.7577 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.248, allocations: 4.031 kB / 0.7577 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002469/1.25, allocations: 2.257 MB / 0.7599 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/1.253, allocations: 467.7 kB / 0.7604 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/1.271, allocations: 11.4 MB / 0.7715 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003021/1.274, allocations: 3.712 MB / 0.7751 GB, free: 154 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003618/1.277, allocations: 2.146 MB / 0.7772 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006408/1.278, allocations: 243.4 kB / 0.7774 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of SimCode: time 9.01e-07/1.278, allocations: 4 kB / 0.7774 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.05692/1.335, allocations: 34.68 MB / 0.8113 GB, free: 117.1 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins/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