Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2408/0.2408, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 75.78 kB / 417.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1431, allocations: 62.45 MB / 480.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01682/0.16, allocations: 14.95 MB / 495 MB, free: 6.211 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1701, allocations: 4.415 MB / 499.4 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.1731, allocations: 79.81 kB / 499.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004697/0.1778, allocations: 2.23 MB / 0.49 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005639/0.1835, allocations: 1.977 MB / 0.4919 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1854, allocations: 0.6044 MB / 0.4925 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006436/0.1918, allocations: 4.303 MB / 0.4967 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00574/0.1976, allocations: 3.154 MB / 0.4998 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003558/0.2012, allocations: 1.565 MB / 0.5013 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004042/0.2052, allocations: 2.219 MB / 0.5035 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001419/0.2067, allocations: 344 kB / 0.5038 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003623/0.2103, allocations: 1.034 MB / 0.5048 GB, free: 192 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2999/0.5102, allocations: 1.96 MB / 0.5067 GB, free: 16.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005394/0.5156, allocations: 2.376 MB / 0.5091 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01282/0.5285, allocations: 7.417 MB / 0.5163 GB, free: 14.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.5285, allocations: 0 / 0.5163 GB, free: 14.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.5285, allocations: 0 / 0.5163 GB, free: 14.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004296/0.529, allocations: 3.344 kB / 0.5163 GB, free: 14.55 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.02084/0.5498, allocations: 5.06 MB / 0.5212 GB, free: 12.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.5499, allocations: 10.81 kB / 0.5213 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01263/0.5625, allocations: 3.185 MB / 0.5244 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00669/0.5692, allocations: 2.349 MB / 0.5267 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002353/0.5695, allocations: 249.6 kB / 0.5269 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001628/0.5711, allocations: 332 kB / 0.5272 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/0.5938, allocations: 12.24 MB / 0.5392 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.5939, allocations: 36.47 kB / 0.5392 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005028/0.5945, allocations: 153.4 kB / 0.5393 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004196/0.5987, allocations: 2.849 MB / 0.5421 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/0.6217, allocations: 11.13 MB / 0.553 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0739/0.6956, allocations: 40.7 MB / 0.5928 GB, free: 260 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01046/0.7061, allocations: 4.687 MB / 0.5973 GB, free: 11.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003865/0.71, allocations: 2.427 MB / 0.5997 GB, free: 8.934 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001419/0.7115, allocations: 1.318 MB / 0.601 GB, free: 7.402 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.7116, allocations: 63.38 kB / 0.601 GB, free: 7.336 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 7.514e-06/0.7116, allocations: 0 / 0.601 GB, free: 7.336 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.05109/0.7627, allocations: 18.69 MB / 0.6193 GB, free: 4.539 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.337e-05/0.7628, allocations: 77.16 kB / 0.6194 GB, free: 4.457 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009186/0.772, allocations: 3.163 MB / 0.6225 GB, free: 1.281 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007954/0.7728, allocations: 61.7 kB / 0.6225 GB, free: 1.215 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003667/0.7765, allocations: 3.115 MB / 0.6256 GB, free: 14.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00179/0.7783, allocations: 0.9732 MB / 0.6265 GB, free: 13.13 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004456/0.7828, allocations: 1.182 MB / 0.6277 GB, free: 11.94 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.783, allocations: 305.1 kB / 0.628 GB, free: 11.64 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004935/0.7879, allocations: 2.467 MB / 0.6304 GB, free: 9.168 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007763/0.7957, allocations: 5.722 MB / 0.636 GB, free: 1.895 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/0.8079, allocations: 8.991 MB / 0.6447 GB, free: 7.785 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001461/0.8081, allocations: 32 kB / 0.6448 GB, free: 7.754 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01988/0.828, allocations: 9.015 MB / 0.6536 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.8282, allocations: 58.34 kB / 0.6536 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000245/0.8285, allocations: 112 kB / 0.6537 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003296/0.8318, allocations: 1.057 MB / 0.6548 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005581/0.8374, allocations: 1.345 MB / 0.6561 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008449/0.8458, allocations: 5.537 MB / 0.6615 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005894/0.8518, allocations: 318.7 kB / 0.6618 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001924/0.8538, allocations: 344 kB / 0.6621 GB, free: 6.395 MB / 0.4981 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.007659/0.8614, allocations: 2.412 MB / 0.6645 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/0.8626, allocations: 311.9 kB / 0.6648 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01194/0.8745, allocations: 5.374 MB / 0.67 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.523e-05/0.8746, allocations: 50.88 kB / 0.6701 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/0.8747, allocations: 4 kB / 0.6701 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-05/0.8747, allocations: 7.969 kB / 0.6701 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0297/0.9044, allocations: 13.06 MB / 0.6828 GB, free: 0.9141 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.792e-05/0.9045, allocations: 15.94 kB / 0.6828 GB, free: 0.8984 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002145/0.9067, allocations: 423.3 kB / 0.6833 GB, free: 496 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00286/0.9096, allocations: 0.8903 MB / 0.6841 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005722/0.9102, allocations: 58.17 kB / 0.6842 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00659/0.9168, allocations: 4.838 MB / 0.6889 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/0.9168, allocations: 19.88 kB / 0.6889 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01633/0.9331, allocations: 8.02 MB / 0.6968 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/0.9344, allocations: 365.1 kB / 0.6971 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/0.9359, allocations: 54.36 kB / 0.6972 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002613/0.9385, allocations: 151.8 kB / 0.6973 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000889/0.9394, allocations: 165.6 kB / 0.6975 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005343/0.94, allocations: 74.42 kB / 0.6975 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00537/0.9454, allocations: 1.956 MB / 0.6994 GB, free: 15.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.51e-07/0.9454, allocations: 0 / 0.6994 GB, free: 15.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008411/0.9538, allocations: 1.067 MB / 0.7005 GB, free: 14.47 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.001152/0.955, allocations: 191.9 kB / 0.7007 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01769/0.9727, allocations: 9.653 MB / 0.7101 GB, free: 4.637 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/0.9728, allocations: 4.062 kB / 0.7101 GB, free: 4.633 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003918/0.9767, allocations: 2.247 MB / 0.7123 GB, free: 2.371 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004203/0.9809, allocations: 465.4 kB / 0.7127 GB, free: 1.93 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2831/1.264, allocations: 11.35 MB / 0.7238 GB, free: 196.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00692/1.271, allocations: 3.709 MB / 0.7274 GB, free: 195.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005618/1.277, allocations: 2.158 MB / 0.7295 GB, free: 195.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/1.277, allocations: 234.9 kB / 0.7298 GB, free: 195.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.553e-06/1.277, allocations: 0 / 0.7298 GB, free: 195.2 MB / 0.545 GB Notification: Performance of Templates: time 0.06448/1.342, allocations: 37.17 MB / 0.7661 GB, free: 166.1 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches