Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 174.7 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.648/1.648, allocations: 225.7 MB / 243.9 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000819/0.000819, allocations: 90.81 kB / 295.1 MB, free: 9.48 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3602/0.3602, allocations: 44.32 MB / 390.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003357, allocations: 8 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3833, allocations: 61.89 MB / 0.5127 GB, free: 37.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.03295/0.4163, allocations: 42.13 MB / 0.5539 GB, free: 8.051 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02246/0.4388, allocations: 12.17 MB / 0.5658 GB, free: 14.48 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01019/0.449, allocations: 195.1 kB / 0.5659 GB, free: 14.45 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.4512, allocations: 0.5029 MB / 0.5664 GB, free: 14.26 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006699/0.458, allocations: 1.897 MB / 0.5683 GB, free: 13.47 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001938/0.4599, allocations: 0.5679 MB / 0.5688 GB, free: 13.24 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.4724, allocations: 6.005 MB / 0.5747 GB, free: 11.39 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007672/0.4802, allocations: 4.485 MB / 0.5791 GB, free: 8.832 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003261/0.4834, allocations: 1.319 MB / 0.5804 GB, free: 7.723 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.4867, allocations: 2.114 MB / 0.5824 GB, free: 5.602 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005799/0.4873, allocations: 168 kB / 0.5826 GB, free: 5.438 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.4895, allocations: 0.9243 MB / 0.5835 GB, free: 4.512 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.4912, allocations: 1.799 MB / 0.5853 GB, free: 2.707 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002449/0.4936, allocations: 2.217 MB / 0.5874 GB, free: 480 kB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007941/0.5016, allocations: 7.201 MB / 0.5945 GB, free: 9.242 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.5016, allocations: 0 / 0.5945 GB, free: 9.242 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5016, allocations: 0 / 0.5945 GB, free: 9.242 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002244/0.5019, allocations: 0 / 0.5945 GB, free: 9.242 MB / 410.7 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.008091/0.51, allocations: 4.157 MB / 0.5985 GB, free: 5.016 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.51, allocations: 8.031 kB / 0.5985 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.5202, allocations: 3.282 MB / 0.6017 GB, free: 1.715 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005042/0.5253, allocations: 2.37 MB / 0.604 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002175/0.5255, allocations: 258.3 kB / 0.6043 GB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/0.5266, allocations: 327.7 kB / 0.6046 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01824/0.5449, allocations: 12.21 MB / 0.6165 GB, free: 1.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.354e-05/0.545, allocations: 39.64 kB / 0.6166 GB, free: 1.941 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004092/0.5454, allocations: 155.8 kB / 0.6167 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004147/0.5496, allocations: 2.852 MB / 0.6195 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01999/0.5696, allocations: 11.07 MB / 0.6303 GB, free: 3.844 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06287/0.6325, allocations: 40.74 MB / 0.6701 GB, free: 10.04 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009909/0.6425, allocations: 4.668 MB / 0.6747 GB, free: 5.152 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003497/0.646, allocations: 2.431 MB / 0.677 GB, free: 2.719 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001288/0.6473, allocations: 1.323 MB / 0.6783 GB, free: 1.172 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.6474, allocations: 52.56 kB / 0.6784 GB, free: 1.113 MB / 490.7 MB Notification: Performance of pre-optimization done (n=249): time 6.131e-06/0.6474, allocations: 0 / 0.6784 GB, free: 1.113 MB / 490.7 MB Notification: Performance of matching and sorting (n=267): time 0.3252/0.9726, allocations: 18.62 MB / 0.6966 GB, free: 125.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.9726, allocations: 71.5 kB / 0.6966 GB, free: 125.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004291/0.9769, allocations: 3.151 MB / 0.6997 GB, free: 124.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004342/0.9774, allocations: 62.36 kB / 0.6998 GB, free: 124.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.9795, allocations: 3.117 MB / 0.7028 GB, free: 122 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/0.9807, allocations: 0.9736 MB / 0.7038 GB, free: 121.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.9809, allocations: 116.6 kB / 0.7039 GB, free: 121.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003366/0.9813, allocations: 0.5662 MB / 0.7044 GB, free: 120.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003796/0.9851, allocations: 2.443 MB / 0.7068 GB, free: 120 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005324/0.9904, allocations: 5.715 MB / 0.7124 GB, free: 114.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/1.003, allocations: 8.949 MB / 0.7211 GB, free: 108 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00017/1.003, allocations: 32.06 kB / 0.7212 GB, free: 108 MB / 490.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01628/1.019, allocations: 8.954 MB / 0.7299 GB, free: 104.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.608e-05/1.019, allocations: 56.97 kB / 0.73 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/1.02, allocations: 121.5 kB / 0.7301 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003281/1.023, allocations: 1.044 MB / 0.7311 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004867/1.028, allocations: 1.348 MB / 0.7324 GB, free: 104.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005827/1.034, allocations: 5.136 MB / 0.7374 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004929/1.038, allocations: 324.4 kB / 0.7377 GB, free: 99.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.04, allocations: 340.9 kB / 0.7381 GB, free: 99.51 MB / 490.7 MB 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.004763/1.045, allocations: 2.416 MB / 0.7404 GB, free: 97.43 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006622/1.045, allocations: 308 kB / 0.7407 GB, free: 97.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007489/1.053, allocations: 5.356 MB / 0.7459 GB, free: 92.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.262e-05/1.053, allocations: 47.75 kB / 0.746 GB, free: 92.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.053, allocations: 4 kB / 0.746 GB, free: 92.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/1.053, allocations: 11.39 kB / 0.746 GB, free: 92.68 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.071, allocations: 13.05 MB / 0.7588 GB, free: 80.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/1.071, allocations: 8 kB / 0.7588 GB, free: 80.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/1.073, allocations: 423.3 kB / 0.7592 GB, free: 80.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002338/1.075, allocations: 0.8987 MB / 0.76 GB, free: 79.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/1.076, allocations: 50.5 kB / 0.7601 GB, free: 79.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00467/1.08, allocations: 4.496 MB / 0.7645 GB, free: 74.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.266e-06/1.08, allocations: 15.94 kB / 0.7645 GB, free: 74.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009712/1.09, allocations: 7.995 MB / 0.7723 GB, free: 66.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/1.091, allocations: 369 kB / 0.7727 GB, free: 65.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004071/1.092, allocations: 61.56 kB / 0.7727 GB, free: 65.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/1.093, allocations: 143.8 kB / 0.7729 GB, free: 65.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000381/1.093, allocations: 171.2 kB / 0.773 GB, free: 65.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/1.093, allocations: 79.98 kB / 0.7731 GB, free: 65.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002395/1.096, allocations: 1.929 MB / 0.775 GB, free: 63.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.096, allocations: 0 / 0.775 GB, free: 63.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004929/1.101, allocations: 1.094 MB / 0.776 GB, free: 62.39 MB / 490.7 MB 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.0004517/1.101, allocations: 197.8 kB / 0.7762 GB, free: 62.19 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007775/1.109, allocations: 5.967 MB / 0.7821 GB, free: 56.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/1.109, allocations: 0 / 0.7821 GB, free: 56.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002515/1.112, allocations: 2.244 MB / 0.7842 GB, free: 53.98 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007387/1.119, allocations: 457.2 kB / 0.7847 GB, free: 53.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02282/1.142, allocations: 13.93 MB / 0.7983 GB, free: 39.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/1.145, allocations: 3.708 MB / 0.8019 GB, free: 35.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004557/1.15, allocations: 2.16 MB / 0.804 GB, free: 33.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006869/1.151, allocations: 235.4 kB / 0.8042 GB, free: 33.31 MB / 490.7 MB Notification: Performance of SimCode: time 1.532e-06/1.151, allocations: 0 / 0.8042 GB, free: 33.31 MB / 490.7 MB Notification: Performance of Templates: time 0.06071/1.212, allocations: 35.37 MB / 0.8388 GB, free: 14.17 MB / 0.4948 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches