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.001383/0.001383, allocations: 111.2 kB / 18.45 MB, free: 4.594 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.001237/0.001237, allocations: 183.1 kB / 19.38 MB, free: 3.668 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.484/1.484, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.2325/0.2325, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4348, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0185/0.4533, allocations: 15.05 MB / 0.5343 GB, free: 8.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.4649, allocations: 4.413 MB / 0.5386 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003939/0.4689, allocations: 85.19 kB / 0.5387 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00509/0.474, allocations: 2.257 MB / 0.5409 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006988/0.481, allocations: 2.068 MB / 0.5429 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002123/0.4831, allocations: 0.6189 MB / 0.5435 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008784/0.4919, allocations: 4.283 MB / 0.5477 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004792/0.4966, allocations: 2.72 MB / 0.5503 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004088/0.5007, allocations: 1.604 MB / 0.5519 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004353/0.5051, allocations: 2.227 MB / 0.5541 GB, free: 8.625 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001454/0.5065, allocations: 344 kB / 0.5544 GB, free: 8.289 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002906/0.5095, allocations: 1.049 MB / 0.5554 GB, free: 7.238 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002518/0.512, allocations: 2.037 MB / 0.5574 GB, free: 5.195 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003694/0.5157, allocations: 2.399 MB / 0.5598 GB, free: 2.781 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.5271, allocations: 7.836 MB / 0.5674 GB, free: 10.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.5271, allocations: 3.984 kB / 0.5674 GB, free: 10.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.5271, allocations: 0 / 0.5674 GB, free: 10.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002943/0.5274, allocations: 0 / 0.5674 GB, free: 10.91 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.01312/0.5405, allocations: 5.227 MB / 0.5725 GB, free: 5.602 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.5405, allocations: 8.031 kB / 0.5725 GB, free: 5.594 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/0.5522, allocations: 3.222 MB / 0.5757 GB, free: 2.363 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006871/0.559, allocations: 2.417 MB / 0.578 GB, free: 15.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/0.5593, allocations: 246.6 kB / 0.5783 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/0.5608, allocations: 335.7 kB / 0.5786 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02353/0.5843, allocations: 12.24 MB / 0.5905 GB, free: 2.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.5844, allocations: 31.7 kB / 0.5906 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005331/0.585, allocations: 155.8 kB / 0.5907 GB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005261/0.5902, allocations: 2.852 MB / 0.5935 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0237/0.6139, allocations: 11.13 MB / 0.6044 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06677/0.6807, allocations: 40.59 MB / 0.644 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/0.6907, allocations: 4.503 MB / 0.6484 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003591/0.6943, allocations: 2.255 MB / 0.6506 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001447/0.6958, allocations: 1.315 MB / 0.6519 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.797e-05/0.6958, allocations: 56.56 kB / 0.652 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 5.119e-06/0.6958, allocations: 0 / 0.652 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.04544/0.7413, allocations: 18.76 MB / 0.6703 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/0.7414, allocations: 73.41 kB / 0.6703 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005232/0.7466, allocations: 3.177 MB / 0.6734 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005093/0.7471, allocations: 61.7 kB / 0.6735 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002976/0.7501, allocations: 3.253 MB / 0.6767 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001524/0.7516, allocations: 1.015 MB / 0.6777 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00179/0.7534, allocations: 1.188 MB / 0.6788 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.7535, allocations: 301.1 kB / 0.6791 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003722/0.7573, allocations: 2.467 MB / 0.6815 GB, free: 3.621 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006618/0.7639, allocations: 5.731 MB / 0.6871 GB, free: 12.29 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01313/0.777, allocations: 8.98 MB / 0.6959 GB, free: 1.707 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001504/0.7772, allocations: 36 kB / 0.6959 GB, free: 1.672 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02127/0.7984, allocations: 9.014 MB / 0.7047 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.7985, allocations: 58.84 kB / 0.7048 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/0.7987, allocations: 116 kB / 0.7049 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003236/0.8019, allocations: 1.053 MB / 0.7059 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004879/0.8068, allocations: 1.357 MB / 0.7073 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008088/0.8149, allocations: 5.538 MB / 0.7127 GB, free: 396 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/0.8196, allocations: 319.7 kB / 0.713 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001174/0.8207, allocations: 344 kB / 0.7133 GB, free: 15.73 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.005502/0.8262, allocations: 2.413 MB / 0.7157 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007062/0.827, allocations: 325.8 kB / 0.716 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01017/0.8371, allocations: 5.364 MB / 0.7212 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-05/0.8372, allocations: 47.98 kB / 0.7212 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.8372, allocations: 4 kB / 0.7213 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.974e-05/0.8373, allocations: 7.969 kB / 0.7213 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.346/1.183, allocations: 13.02 MB / 0.734 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.114e-05/1.183, allocations: 11 kB / 0.734 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002104/1.185, allocations: 422.3 kB / 0.7344 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002832/1.188, allocations: 0.8908 MB / 0.7353 GB, free: 178.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000438/1.189, allocations: 55.97 kB / 0.7353 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00661/1.195, allocations: 4.839 MB / 0.74 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.707e-05/1.195, allocations: 17.97 kB / 0.74 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/1.208, allocations: 8.033 MB / 0.7479 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/1.21, allocations: 378.1 kB / 0.7483 GB, free: 173 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005052/1.21, allocations: 48.86 kB / 0.7483 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/1.212, allocations: 157.7 kB / 0.7485 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000448/1.212, allocations: 164.4 kB / 0.7486 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.212, allocations: 76.48 kB / 0.7487 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002822/1.215, allocations: 1.957 MB / 0.7506 GB, free: 172.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/1.215, allocations: 3.594 kB / 0.7506 GB, free: 172.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005462/1.221, allocations: 1.091 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.000605/1.221, allocations: 195 kB / 0.7518 GB, free: 171.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008358/1.23, allocations: 5.785 MB / 0.7575 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.448e-05/1.23, allocations: 5.938 kB / 0.7575 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003027/1.233, allocations: 2.105 MB / 0.7596 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/1.236, allocations: 456.1 kB / 0.76 GB, free: 169.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/1.253, allocations: 11.4 MB / 0.7711 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003391/1.257, allocations: 3.708 MB / 0.7748 GB, free: 155 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004544/1.261, allocations: 2.155 MB / 0.7769 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007911/1.262, allocations: 235.4 kB / 0.7771 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.753e-06/1.262, allocations: 3.938 kB / 0.7771 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.06348/1.326, allocations: 34.94 MB / 0.8112 GB, free: 117.9 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 -s cvode -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/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