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.001175/0.001175, allocations: 109.4 kB / 17.21 MB, free: 6.27 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.001161/0.001161, allocations: 194 kB / 18.12 MB, free: 5.363 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.395/1.395, allocations: 222.9 MB / 241.8 MB, free: 15.56 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.2543/0.2543, allocations: 44.17 MB / 336.1 MB, free: 3.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 73.28 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1481, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04893/0.197, allocations: 46.38 MB / 0.5028 GB, free: 300 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3256/0.5227, allocations: 9.639 MB / 0.5122 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01232/0.535, allocations: 191.2 kB / 0.5124 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005525/0.5406, allocations: 2.193 MB / 0.5146 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008037/0.5487, allocations: 1.887 MB / 0.5164 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.5507, allocations: 0.5651 MB / 0.517 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009571/0.5603, allocations: 5.997 MB / 0.5228 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005358/0.5656, allocations: 3.072 MB / 0.5258 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003382/0.569, allocations: 1.395 MB / 0.5272 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00392/0.573, allocations: 2.332 MB / 0.5295 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001426/0.5744, allocations: 239.5 kB / 0.5297 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003372/0.5778, allocations: 1.01 MB / 0.5307 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002823/0.5806, allocations: 1.911 MB / 0.5325 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004553/0.5852, allocations: 2.322 MB / 0.5348 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009826/0.5951, allocations: 7.396 MB / 0.542 GB, free: 12.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.5951, allocations: 0 / 0.542 GB, free: 12.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5951, allocations: 0 / 0.542 GB, free: 12.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003605/0.5955, allocations: 0 / 0.542 GB, free: 12.09 MB / 398.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.01468/0.6102, allocations: 5.092 MB / 0.547 GB, free: 7.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.6102, allocations: 12.03 kB / 0.547 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/0.6215, allocations: 3.187 MB / 0.5501 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006183/0.6277, allocations: 2.374 MB / 0.5524 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002764/0.628, allocations: 249.6 kB / 0.5527 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001533/0.6296, allocations: 325.9 kB / 0.553 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/0.6526, allocations: 12.24 MB / 0.5649 GB, free: 4.367 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.6528, allocations: 31.73 kB / 0.565 GB, free: 4.336 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004941/0.6533, allocations: 157.1 kB / 0.5651 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004706/0.658, allocations: 2.854 MB / 0.5679 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02402/0.682, allocations: 11.13 MB / 0.5788 GB, free: 6.246 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06995/0.7521, allocations: 40.71 MB / 0.6185 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/0.7626, allocations: 4.687 MB / 0.6231 GB, free: 7.824 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003951/0.7666, allocations: 2.433 MB / 0.6255 GB, free: 5.391 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001382/0.768, allocations: 1.319 MB / 0.6268 GB, free: 3.859 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.253e-05/0.7681, allocations: 52.56 kB / 0.6268 GB, free: 3.801 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 6.432e-06/0.7681, allocations: 4 kB / 0.6268 GB, free: 3.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04746/0.8156, allocations: 18.68 MB / 0.6451 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.8157, allocations: 73.41 kB / 0.6451 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00462/0.8203, allocations: 3.176 MB / 0.6482 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004236/0.8208, allocations: 57.7 kB / 0.6483 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002123/0.8229, allocations: 3.121 MB / 0.6513 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00124/0.8242, allocations: 0.9697 MB / 0.6523 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001802/0.826, allocations: 1.181 MB / 0.6534 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001788/0.8262, allocations: 305.1 kB / 0.6537 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004154/0.8303, allocations: 2.463 MB / 0.6561 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00606/0.8364, allocations: 5.735 MB / 0.6617 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/0.8483, allocations: 8.98 MB / 0.6705 GB, free: 3.688 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.495e-05/0.8484, allocations: 36 kB / 0.6705 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01606/0.8645, allocations: 9.007 MB / 0.6793 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.996e-05/0.8646, allocations: 56 kB / 0.6794 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001943/0.8648, allocations: 112 kB / 0.6795 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003342/0.8682, allocations: 1.061 MB / 0.6805 GB, free: 9.402 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004709/0.8729, allocations: 1.349 MB / 0.6819 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007568/0.8805, allocations: 5.142 MB / 0.6869 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/0.8849, allocations: 323.9 kB / 0.6872 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/0.8859, allocations: 339.1 kB / 0.6875 GB, free: 2.133 MB / 0.5294 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.005206/0.8911, allocations: 2.414 MB / 0.6899 GB, free: 15.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009135/0.8921, allocations: 319.8 kB / 0.6902 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/0.9025, allocations: 5.367 MB / 0.6954 GB, free: 9.957 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.78e-05/0.9026, allocations: 51.92 kB / 0.6955 GB, free: 9.906 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/0.9027, allocations: 4 kB / 0.6955 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.709e-05/0.9027, allocations: 11.95 kB / 0.6955 GB, free: 9.891 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2976/1.2, allocations: 13.07 MB / 0.7082 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/1.2, allocations: 11.17 kB / 0.7082 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/1.202, allocations: 426 kB / 0.7087 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003064/1.205, allocations: 0.8914 MB / 0.7095 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003229/1.206, allocations: 54.09 kB / 0.7096 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006944/1.213, allocations: 4.503 MB / 0.714 GB, free: 196.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/1.213, allocations: 17.94 kB / 0.714 GB, free: 196.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01519/1.228, allocations: 8.008 MB / 0.7218 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/1.23, allocations: 367 kB / 0.7222 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005405/1.23, allocations: 52.94 kB / 0.7222 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.232, allocations: 150.9 kB / 0.7224 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005368/1.232, allocations: 173.1 kB / 0.7225 GB, free: 193.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/1.232, allocations: 72.31 kB / 0.7226 GB, free: 193.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003483/1.236, allocations: 1.965 MB / 0.7245 GB, free: 192.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/1.236, allocations: 0 / 0.7245 GB, free: 192.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006116/1.242, allocations: 1.085 MB / 0.7256 GB, free: 192.6 MB / 0.545 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.0006298/1.243, allocations: 202.8 kB / 0.7258 GB, free: 192.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009694/1.252, allocations: 5.998 MB / 0.7316 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.253, allocations: 0 / 0.7316 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002788/1.255, allocations: 2.255 MB / 0.7338 GB, free: 189.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002756/1.258, allocations: 440.2 kB / 0.7342 GB, free: 189.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01869/1.277, allocations: 13.8 MB / 0.7477 GB, free: 180.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003395/1.28, allocations: 3.708 MB / 0.7513 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004403/1.285, allocations: 2.155 MB / 0.7534 GB, free: 175.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006893/1.285, allocations: 239.4 kB / 0.7537 GB, free: 175.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.784e-06/1.285, allocations: 0 / 0.7537 GB, free: 175.6 MB / 0.545 GB Notification: Performance of Templates: time 0.06039/1.346, allocations: 35.99 MB / 0.7888 GB, free: 139.8 MB / 0.545 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