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.001029/0.001029, allocations: 99.98 kB / 17.01 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 193.4 kB / 17.91 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 46.19 MB / 344.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003085, allocations: 8.219 kB / 418.8 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1564, allocations: 63.57 MB / 482.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3469/0.5033, allocations: 41.68 MB / 0.5118 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.5272, allocations: 9.024 MB / 0.5206 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01103/0.5383, allocations: 192.8 kB / 0.5208 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008641/0.5469, allocations: 2.059 MB / 0.5228 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02254/0.5695, allocations: 6.041 MB / 0.5287 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.573, allocations: 0.518 MB / 0.5292 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008608/0.5816, allocations: 4.691 MB / 0.5338 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007682/0.5894, allocations: 3.519 MB / 0.5372 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003796/0.5932, allocations: 1.292 MB / 0.5385 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00428/0.5975, allocations: 2.07 MB / 0.5405 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001539/0.599, allocations: 167.2 kB / 0.5407 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004196/0.6032, allocations: 0.7838 MB / 0.5414 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002936/0.6062, allocations: 1.743 MB / 0.5431 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001493/0.6077, allocations: 0.9065 MB / 0.544 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007164/0.6149, allocations: 5.901 MB / 0.5498 GB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.6149, allocations: 0 / 0.5498 GB, free: 14.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.615, allocations: 3.938 kB / 0.5498 GB, free: 14.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003034/0.6153, allocations: 0 / 0.5498 GB, free: 14.66 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.00933/0.6246, allocations: 4.187 MB / 0.5539 GB, free: 10.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.6247, allocations: 8.031 kB / 0.5539 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01055/0.6352, allocations: 3.278 MB / 0.5571 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005771/0.641, allocations: 2.318 MB / 0.5594 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.6412, allocations: 248.5 kB / 0.5596 GB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009212/0.6422, allocations: 329.9 kB / 0.5599 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02219/0.6644, allocations: 12.22 MB / 0.5718 GB, free: 8.531 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001228/0.6645, allocations: 31.66 kB / 0.5719 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004927/0.665, allocations: 156 kB / 0.572 GB, free: 8.398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004597/0.6696, allocations: 2.84 MB / 0.5748 GB, free: 5.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02326/0.6929, allocations: 11.09 MB / 0.5856 GB, free: 10.47 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05997/0.7529, allocations: 40.71 MB / 0.6254 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009286/0.7623, allocations: 4.693 MB / 0.63 GB, free: 12.03 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003317/0.7656, allocations: 2.42 MB / 0.6323 GB, free: 9.613 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001243/0.7669, allocations: 1.318 MB / 0.6336 GB, free: 8.086 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.7669, allocations: 60.56 kB / 0.6337 GB, free: 8.016 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 7.024e-06/0.767, allocations: 0 / 0.6337 GB, free: 8.016 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.0417/0.8087, allocations: 18.63 MB / 0.6519 GB, free: 5.254 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.8088, allocations: 81.36 kB / 0.6519 GB, free: 5.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004531/0.8133, allocations: 3.152 MB / 0.655 GB, free: 1.996 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.8135, allocations: 60.2 kB / 0.6551 GB, free: 1.934 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002151/0.8157, allocations: 3.114 MB / 0.6581 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001006/0.8167, allocations: 0.973 MB / 0.6591 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/0.8169, allocations: 116 kB / 0.6592 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0003638/0.8173, allocations: 0.5583 MB / 0.6597 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004125/0.8214, allocations: 2.444 MB / 0.6621 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007238/0.8287, allocations: 5.715 MB / 0.6677 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005836/0.8346, allocations: 3.72 MB / 0.6713 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.906e-05/0.8346, allocations: 36 kB / 0.6714 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01568/0.8503, allocations: 8.952 MB / 0.6801 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.8505, allocations: 58.59 kB / 0.6801 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002473/0.8507, allocations: 116.1 kB / 0.6803 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003105/0.8539, allocations: 1.066 MB / 0.6813 GB, free: 5.453 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004276/0.8581, allocations: 1.345 MB / 0.6826 GB, free: 4.105 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007359/0.8655, allocations: 5.137 MB / 0.6876 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004669/0.8702, allocations: 327.7 kB / 0.6879 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/0.8713, allocations: 342.6 kB / 0.6883 GB, free: 14.18 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 (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.006033/0.8773, allocations: 2.413 MB / 0.6906 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007994/0.8781, allocations: 312 kB / 0.6909 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/0.889, allocations: 5.351 MB / 0.6961 GB, free: 6.035 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-05/0.8891, allocations: 55.22 kB / 0.6962 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.009e-05/0.8891, allocations: 4 kB / 0.6962 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.972e-05/0.8892, allocations: 11.95 kB / 0.6962 GB, free: 5.969 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03141/0.9206, allocations: 13.03 MB / 0.7089 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.328e-05/0.9207, allocations: 12 kB / 0.709 GB, free: 8.742 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/0.9229, allocations: 423.3 kB / 0.7094 GB, free: 8.328 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002872/0.9258, allocations: 0.8986 MB / 0.7102 GB, free: 7.426 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004276/0.9262, allocations: 52 kB / 0.7103 GB, free: 7.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006574/0.9328, allocations: 4.5 MB / 0.7147 GB, free: 2.734 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.746e-05/0.9329, allocations: 15.94 kB / 0.7147 GB, free: 2.719 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3576/1.29, allocations: 7.983 MB / 0.7225 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/1.292, allocations: 370.2 kB / 0.7228 GB, free: 187.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008985/1.293, allocations: 51.03 kB / 0.7229 GB, free: 187.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.294, allocations: 151 kB / 0.723 GB, free: 187.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004261/1.295, allocations: 168.2 kB / 0.7232 GB, free: 187.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/1.295, allocations: 76.42 kB / 0.7233 GB, free: 187.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003993/1.299, allocations: 1.925 MB / 0.7251 GB, free: 187.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.7e-07/1.299, allocations: 0 / 0.7251 GB, free: 187.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00642/1.305, allocations: 1.059 MB / 0.7262 GB, free: 187.1 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 (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.0007295/1.306, allocations: 201.3 kB / 0.7264 GB, free: 187 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01103/1.317, allocations: 5.963 MB / 0.7322 GB, free: 185 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/1.317, allocations: 2.156 kB / 0.7322 GB, free: 185 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00383/1.321, allocations: 2.249 MB / 0.7344 GB, free: 184.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/1.324, allocations: 426.4 kB / 0.7348 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01891/1.343, allocations: 13.43 MB / 0.7479 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003779/1.346, allocations: 3.712 MB / 0.7515 GB, free: 175.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004846/1.351, allocations: 2.15 MB / 0.7536 GB, free: 175.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008509/1.352, allocations: 241.3 kB / 0.7539 GB, free: 175.6 MB / 0.545 GB Notification: Performance of SimCode: time 3.226e-06/1.352, allocations: 3.938 kB / 0.7539 GB, free: 175.6 MB / 0.545 GB Notification: Performance of Templates: time 0.05985/1.412, allocations: 34.45 MB / 0.7875 GB, free: 145.3 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