Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.004478/0.004478, allocations: 100.2 kB / 15.87 MB, free: 6.309 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.001105/0.001105, allocations: 189.6 kB / 16.78 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.1 MB / 222.6 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3893/0.3893, allocations: 43.49 MB / 313.5 MB, free: 8.496 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 66.56 kB / 382 MB, free: 8.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1328, allocations: 57.79 MB / 439.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3387/0.4716, allocations: 47.12 MB / 486.9 MB, free: 21.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02658/0.4982, allocations: 9.72 MB / 496.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01248/0.5107, allocations: 192.3 kB / 496.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00432/0.5151, allocations: 2.216 MB / 499.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006963/0.5221, allocations: 1.943 MB / 0.4893 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.5245, allocations: 0.5623 MB / 0.4898 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01333/0.5378, allocations: 6.239 MB / 0.4959 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008353/0.5462, allocations: 3.119 MB / 0.4989 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004815/0.5511, allocations: 1.453 MB / 0.5004 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0066/0.5577, allocations: 2.39 MB / 0.5027 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001972/0.5597, allocations: 244.5 kB / 0.5029 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003847/0.5636, allocations: 1.009 MB / 0.5039 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003656/0.5673, allocations: 1.977 MB / 0.5058 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006136/0.5734, allocations: 2.399 MB / 0.5082 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.5855, allocations: 7.616 MB / 0.5156 GB, free: 1.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.5855, allocations: 2.844 kB / 0.5156 GB, free: 1.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.5855, allocations: 0 / 0.5156 GB, free: 1.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003246/0.5858, allocations: 0 / 0.5156 GB, free: 1.879 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: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01515/0.601, allocations: 5.273 MB / 0.5208 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.601, allocations: 8.312 kB / 0.5208 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/0.6129, allocations: 3.192 MB / 0.5239 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007856/0.6208, allocations: 2.448 MB / 0.5263 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003199/0.6211, allocations: 259.1 kB / 0.5265 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002104/0.6232, allocations: 347.6 kB / 0.5269 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02941/0.6527, allocations: 12.65 MB / 0.5392 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000158/0.6529, allocations: 35.7 kB / 0.5393 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008591/0.6537, allocations: 167.8 kB / 0.5394 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005458/0.6592, allocations: 3.028 MB / 0.5424 GB, free: 7.684 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02698/0.6862, allocations: 11.33 MB / 0.5534 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07506/0.7613, allocations: 42.33 MB / 0.5948 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.7717, allocations: 4.692 MB / 0.5994 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003618/0.7753, allocations: 2.437 MB / 0.6017 GB, free: 9.523 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001308/0.7767, allocations: 1.319 MB / 0.603 GB, free: 7.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.676e-05/0.7768, allocations: 60.5 kB / 0.6031 GB, free: 7.914 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 5.18e-06/0.7768, allocations: 0 / 0.6031 GB, free: 7.914 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.04701/0.8238, allocations: 19.52 MB / 0.6221 GB, free: 4.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.8239, allocations: 103 kB / 0.6222 GB, free: 4.109 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00564/0.8296, allocations: 3.262 MB / 0.6254 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007411/0.8303, allocations: 61.69 kB / 0.6255 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.3364/1.167, allocations: 3.284 MB / 0.6287 GB, free: 141.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001574/1.168, allocations: 0.9804 MB / 0.6297 GB, free: 141.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001932/1.17, allocations: 1.208 MB / 0.6308 GB, free: 141.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.436e-05/1.17, allocations: 301.1 kB / 0.6311 GB, free: 140.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003421/1.174, allocations: 2.497 MB / 0.6336 GB, free: 140.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004746/1.179, allocations: 5.887 MB / 0.6393 GB, free: 135.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009516/1.188, allocations: 9.201 MB / 0.6483 GB, free: 128.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001165/1.188, allocations: 32.25 kB / 0.6483 GB, free: 128.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.01788/1.206, allocations: 9.17 MB / 0.6573 GB, free: 125.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000163/1.206, allocations: 55.09 kB / 0.6573 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003858/1.207, allocations: 118.9 kB / 0.6574 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003765/1.211, allocations: 1.059 MB / 0.6585 GB, free: 125.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005841/1.216, allocations: 1.395 MB / 0.6598 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009268/1.226, allocations: 5.151 MB / 0.6649 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006916/1.233, allocations: 328.3 kB / 0.6652 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001998/1.235, allocations: 357.4 kB / 0.6655 GB, free: 122.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (751): * Single equations (assignments): 744 * 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.008212/1.243, allocations: 2.488 MB / 0.668 GB, free: 121.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.244, allocations: 324.4 kB / 0.6683 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0146/1.259, allocations: 5.373 MB / 0.6735 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001249/1.259, allocations: 49.92 kB / 0.6736 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.025e-05/1.259, allocations: 3.531 kB / 0.6736 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.132e-05/1.259, allocations: 15.34 kB / 0.6736 GB, free: 119.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03218/1.291, allocations: 13.36 MB / 0.6866 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-05/1.291, allocations: 7.938 kB / 0.6866 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/1.293, allocations: 428.7 kB / 0.687 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/1.296, allocations: 0.8918 MB / 0.6879 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002658/1.296, allocations: 59.11 kB / 0.688 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005025/1.301, allocations: 4.514 MB / 0.6924 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.228e-05/1.301, allocations: 16.64 kB / 0.6924 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01131/1.312, allocations: 8.026 MB / 0.7002 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002189/1.315, allocations: 0.7354 MB / 0.701 GB, free: 102.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000987/1.316, allocations: 48 kB / 0.701 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/1.317, allocations: 155.3 kB / 0.7011 GB, free: 102.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004885/1.318, allocations: 172 kB / 0.7013 GB, free: 102.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002228/1.318, allocations: 83.73 kB / 0.7014 GB, free: 102.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00325/1.321, allocations: 2.015 MB / 0.7034 GB, free: 100.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.321, allocations: 0 / 0.7034 GB, free: 100.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006849/1.328, allocations: 1.111 MB / 0.7044 GB, free: 99.57 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * 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.000606/1.329, allocations: 203.7 kB / 0.7046 GB, free: 99.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01036/1.339, allocations: 6.071 MB / 0.7106 GB, free: 94.02 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/1.339, allocations: 64 / 0.7106 GB, free: 94.02 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002965/1.342, allocations: 2.264 MB / 0.7128 GB, free: 91.96 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004733/1.347, allocations: 421.3 kB / 0.7132 GB, free: 91.56 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02989/1.377, allocations: 14.31 MB / 0.7272 GB, free: 77.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008446/1.386, allocations: 3.832 MB / 0.7309 GB, free: 73.26 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005651/1.391, allocations: 2.186 MB / 0.733 GB, free: 71.06 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007885/1.392, allocations: 243.4 kB / 0.7333 GB, free: 70.82 MB / 494.1 MB Notification: Performance of SimCode: time 1.573e-06/1.392, allocations: 0 / 0.7333 GB, free: 70.82 MB / 494.1 MB Notification: Performance of Templates: time 0.06606/1.458, allocations: 36.31 MB / 0.7687 GB, free: 34.63 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches