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.001067/0.001067, allocations: 96.03 kB / 16.98 MB, free: 5.938 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: 188.2 kB / 17.88 MB, free: 5.594 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.353/1.353, allocations: 223.2 MB / 241.8 MB, free: 14.65 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.2132/0.2132, allocations: 44.23 MB / 337.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004417, allocations: 8 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1617, allocations: 61.92 MB / 471.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0418/0.2036, allocations: 39.69 MB / 0.4992 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3725/0.5762, allocations: 9.504 MB / 0.5085 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01001/0.5862, allocations: 192.6 kB / 0.5086 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008901/0.5951, allocations: 2.009 MB / 0.5106 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02457/0.6198, allocations: 5.867 MB / 0.5163 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003901/0.6237, allocations: 0.5015 MB / 0.5168 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007611/0.6313, allocations: 2.352 MB / 0.5191 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00654/0.6379, allocations: 3.514 MB / 0.5225 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002801/0.6407, allocations: 1.126 MB / 0.5236 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002969/0.6437, allocations: 1.508 MB / 0.5251 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009051/0.6447, allocations: 169 kB / 0.5253 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002351/0.647, allocations: 0.7828 MB / 0.526 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001878/0.6489, allocations: 1.645 MB / 0.5276 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001296/0.6502, allocations: 0.9153 MB / 0.5285 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005977/0.6562, allocations: 5.956 MB / 0.5344 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.6562, allocations: 0 / 0.5344 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6562, allocations: 0 / 0.5344 GB, free: 4.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000306/0.6566, allocations: 0 / 0.5344 GB, free: 4.418 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.009725/0.6663, allocations: 4.281 MB / 0.5385 GB, free: 1.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.6663, allocations: 10.09 kB / 0.5386 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01329/0.6796, allocations: 3.856 MB / 0.5423 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007232/0.6869, allocations: 2.445 MB / 0.5447 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002564/0.6872, allocations: 253.6 kB / 0.5449 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.6892, allocations: 324.2 kB / 0.5453 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.7121, allocations: 12.31 MB / 0.5573 GB, free: 5.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001514/0.7124, allocations: 37.28 kB / 0.5573 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005969/0.713, allocations: 151.8 kB / 0.5575 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004732/0.7177, allocations: 2.845 MB / 0.5602 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02361/0.7413, allocations: 11.19 MB / 0.5712 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0747/0.8161, allocations: 40.81 MB / 0.611 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/0.8262, allocations: 4.681 MB / 0.6156 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/0.8276, allocations: 1.322 MB / 0.6169 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.8277, allocations: 60.5 kB / 0.6169 GB, free: 10.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=249): time 6.232e-06/0.8277, allocations: 0 / 0.6169 GB, free: 10.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=267): time 0.05333/0.881, allocations: 19.17 MB / 0.6357 GB, free: 6.617 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/0.8812, allocations: 77.41 kB / 0.6357 GB, free: 6.527 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007881/0.889, allocations: 3.27 MB / 0.6389 GB, free: 3.25 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007662/0.8898, allocations: 57.7 kB / 0.639 GB, free: 3.188 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002889/0.8927, allocations: 3.117 MB / 0.642 GB, free: 88 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00169/0.8945, allocations: 0.9687 MB / 0.643 GB, free: 15.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007765/0.8953, allocations: 122.3 kB / 0.6431 GB, free: 15 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0006333/0.8959, allocations: 0.5619 MB / 0.6436 GB, free: 14.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004621/0.9005, allocations: 2.432 MB / 0.646 GB, free: 12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007265/0.9078, allocations: 5.684 MB / 0.6516 GB, free: 4.715 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005939/0.9138, allocations: 3.712 MB / 0.6552 GB, free: 1.004 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.749e-05/0.9139, allocations: 32 kB / 0.6552 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01671/0.9306, allocations: 8.935 MB / 0.6639 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.925e-05/0.9307, allocations: 56.06 kB / 0.664 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.9308, allocations: 112 kB / 0.6641 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00308/0.9339, allocations: 1.067 MB / 0.6651 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00494/0.9389, allocations: 1.353 MB / 0.6665 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007602/0.9465, allocations: 5.262 MB / 0.6716 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/0.952, allocations: 326.1 kB / 0.6719 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/0.953, allocations: 337.4 kB / 0.6722 GB, free: 15.39 MB / 0.5137 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005185/0.9582, allocations: 2.42 MB / 0.6746 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006824/0.9589, allocations: 315.9 kB / 0.6749 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008978/0.9679, allocations: 5.351 MB / 0.6801 GB, free: 7.242 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.391e-05/0.968, allocations: 44 kB / 0.6802 GB, free: 7.199 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.968, allocations: 4 kB / 0.6802 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.968, allocations: 11.95 kB / 0.6802 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02563/0.9937, allocations: 13.05 MB / 0.6929 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.592e-05/0.9938, allocations: 12 kB / 0.6929 GB, free: 9.941 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/0.9957, allocations: 428.2 kB / 0.6933 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002775/0.9984, allocations: 0.8914 MB / 0.6942 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002469/0.9987, allocations: 52 kB / 0.6943 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006215/1.005, allocations: 4.637 MB / 0.6988 GB, free: 3.816 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.776e-05/1.005, allocations: 19.94 kB / 0.6988 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.326/1.331, allocations: 9.048 MB / 0.7077 GB, free: 180 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/1.332, allocations: 366.2 kB / 0.708 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005303/1.333, allocations: 55.39 kB / 0.7081 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/1.334, allocations: 149 kB / 0.7082 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004088/1.335, allocations: 170 kB / 0.7084 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00025/1.335, allocations: 78.67 kB / 0.7084 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004044/1.339, allocations: 2.017 MB / 0.7104 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.31e-07/1.339, allocations: 0.7812 kB / 0.7104 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007636/1.347, allocations: 1.108 MB / 0.7115 GB, free: 179.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001049/1.348, allocations: 208.2 kB / 0.7117 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01195/1.36, allocations: 5.962 MB / 0.7175 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/1.36, allocations: 2.062 kB / 0.7175 GB, free: 177.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003432/1.363, allocations: 2.241 MB / 0.7197 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/1.366, allocations: 399.5 kB / 0.7201 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01975/1.385, allocations: 13.4 MB / 0.7332 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004328/1.39, allocations: 3.809 MB / 0.7369 GB, free: 168 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005782/1.395, allocations: 2.156 MB / 0.739 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008277/1.396, allocations: 238.8 kB / 0.7392 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.573e-06/1.396, allocations: 0 / 0.7392 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.06204/1.458, allocations: 35.16 MB / 0.7736 GB, free: 136.7 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/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