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.001232/0.001232, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001305/0.001305, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.376/1.376, allocations: 222.9 MB / 242.9 MB, free: 15.15 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.2348/0.2348, allocations: 44.18 MB / 337.3 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.001941, allocations: 62.05 kB / 409.1 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1138, allocations: 60.82 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0164/0.1303, allocations: 15 MB / 484.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008954/0.1393, allocations: 4.411 MB / 489.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002122/0.1414, allocations: 79.81 kB / 489.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004238/0.1457, allocations: 2.227 MB / 491.6 MB, free: 8.543 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004732/0.1505, allocations: 2.019 MB / 493.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00157/0.1521, allocations: 0.6122 MB / 494.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005297/0.1574, allocations: 4.282 MB / 498.6 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003943/0.1614, allocations: 3.158 MB / 0.49 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.1639, allocations: 1.569 MB / 0.4915 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00297/0.1669, allocations: 2.235 MB / 0.4937 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000931/0.1678, allocations: 344 kB / 0.494 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002292/0.1702, allocations: 1.053 MB / 0.495 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002037/0.1722, allocations: 1.987 MB / 0.497 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003041/0.1753, allocations: 2.407 MB / 0.4993 GB, free: 4.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2365/0.4118, allocations: 7.47 MB / 0.5066 GB, free: 21.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.4118, allocations: 1.344 kB / 0.5066 GB, free: 21.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.4118, allocations: 1.031 kB / 0.5066 GB, free: 21.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003317/0.4122, allocations: 0.6094 kB / 0.5066 GB, free: 21.24 MB / 382.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.01668/0.4289, allocations: 5.096 MB / 0.5116 GB, free: 19.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4289, allocations: 11.48 kB / 0.5116 GB, free: 19.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01295/0.4419, allocations: 3.183 MB / 0.5147 GB, free: 18.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007836/0.4498, allocations: 2.376 MB / 0.517 GB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000345/0.4502, allocations: 250.6 kB / 0.5173 GB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002221/0.4524, allocations: 333.2 kB / 0.5176 GB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02631/0.4787, allocations: 12.23 MB / 0.5295 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/0.4789, allocations: 37.09 kB / 0.5296 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001255/0.4802, allocations: 155.5 kB / 0.5297 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004972/0.4852, allocations: 2.843 MB / 0.5325 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02213/0.5073, allocations: 11.12 MB / 0.5434 GB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06896/0.5764, allocations: 40.71 MB / 0.5831 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.5874, allocations: 4.686 MB / 0.5877 GB, free: 7.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004055/0.5915, allocations: 2.439 MB / 0.5901 GB, free: 5.043 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001419/0.593, allocations: 1.321 MB / 0.5914 GB, free: 3.512 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.881e-05/0.5931, allocations: 56.56 kB / 0.5914 GB, free: 3.449 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 7.514e-06/0.5931, allocations: 1.422 kB / 0.5914 GB, free: 3.449 MB / 430.1 MB Notification: Performance of matching and sorting (n=267): time 0.05006/0.6431, allocations: 18.68 MB / 0.6097 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.6433, allocations: 73.41 kB / 0.6097 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00485/0.6481, allocations: 3.172 MB / 0.6128 GB, free: 13.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005215/0.6487, allocations: 65.45 kB / 0.6129 GB, free: 13.35 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002626/0.6513, allocations: 3.124 MB / 0.6159 GB, free: 10.24 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00159/0.6529, allocations: 0.9723 MB / 0.6169 GB, free: 9.277 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001748/0.6547, allocations: 1.175 MB / 0.618 GB, free: 8.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.6548, allocations: 307.2 kB / 0.6183 GB, free: 7.789 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00373/0.6585, allocations: 2.467 MB / 0.6207 GB, free: 5.316 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007053/0.6656, allocations: 5.727 MB / 0.6263 GB, free: 14.04 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/0.6774, allocations: 8.986 MB / 0.6351 GB, free: 3.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/0.6775, allocations: 32 kB / 0.6351 GB, free: 3.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01951/0.6971, allocations: 9.005 MB / 0.6439 GB, free: 11.49 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/0.6972, allocations: 57 kB / 0.644 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002003/0.6974, allocations: 116 kB / 0.6441 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003557/0.701, allocations: 1.058 MB / 0.6451 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004981/0.706, allocations: 1.349 MB / 0.6464 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008161/0.7142, allocations: 5.54 MB / 0.6519 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004328/0.7186, allocations: 315.8 kB / 0.6522 GB, free: 2.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/0.7198, allocations: 344 kB / 0.6525 GB, free: 2.594 MB / 494.1 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.004825/0.7246, allocations: 2.408 MB / 0.6548 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008055/0.7254, allocations: 316 kB / 0.6551 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/0.7363, allocations: 5.367 MB / 0.6604 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.23e-05/0.7364, allocations: 48 kB / 0.6604 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.7364, allocations: 8.75 kB / 0.6604 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.783e-05/0.7365, allocations: 7.969 kB / 0.6604 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02677/0.7633, allocations: 13.08 MB / 0.6732 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-05/0.7633, allocations: 15.94 kB / 0.6732 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002079/0.7654, allocations: 425.1 kB / 0.6736 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/0.7685, allocations: 0.8946 MB / 0.6745 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004061/0.769, allocations: 48 kB / 0.6745 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006902/0.7759, allocations: 4.847 MB / 0.6793 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/0.7759, allocations: 15.94 kB / 0.6793 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/0.7895, allocations: 8.007 MB / 0.6871 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009525/0.7905, allocations: 365 kB / 0.6875 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009621/0.7914, allocations: 62.61 kB / 0.6875 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/0.7936, allocations: 151.8 kB / 0.6877 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005421/0.7941, allocations: 161.6 kB / 0.6878 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002818/0.7944, allocations: 82.81 kB / 0.6879 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003793/0.7982, allocations: 1.961 MB / 0.6898 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.51e-07/0.7982, allocations: 4 kB / 0.6898 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005845/0.8041, allocations: 1.078 MB / 0.6909 GB, free: 10.66 MB / 0.5294 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.0008056/0.8049, allocations: 197.8 kB / 0.6911 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01636/0.8213, allocations: 9.657 MB / 0.7005 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/0.8213, allocations: 0 / 0.7005 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.1956/1.017, allocations: 2.248 MB / 0.7027 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003545/1.021, allocations: 460.5 kB / 0.7031 GB, free: 193.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02062/1.041, allocations: 11.89 MB / 0.7147 GB, free: 188.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/1.045, allocations: 3.709 MB / 0.7184 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/1.047, allocations: 287.8 kB / 0.7186 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/1.047, allocations: 0 / 0.7186 GB, free: 187.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.09003/1.137, allocations: 84.23 MB / 0.8009 GB, free: 109.2 MB / 0.5294 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/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