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.001235/0.001242, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2193/0.2193, allocations: 46.11 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001404, allocations: 86.06 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1148, allocations: 62.45 MB / 481.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01475/0.1295, allocations: 14.94 MB / 496.4 MB, free: 5.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009324/0.1389, allocations: 4.419 MB / 0.4891 GB, free: 1.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.1414, allocations: 79.81 kB / 0.4892 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004334/0.1458, allocations: 2.227 MB / 0.4913 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005545/0.1514, allocations: 1.981 MB / 0.4933 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001687/0.1531, allocations: 0.6083 MB / 0.4939 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007017/0.1601, allocations: 4.315 MB / 0.4981 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005862/0.166, allocations: 3.142 MB / 0.5011 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002755/0.1688, allocations: 1.573 MB / 0.5027 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002846/0.1717, allocations: 2.219 MB / 0.5049 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008261/0.1726, allocations: 344 kB / 0.5052 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2598/0.4324, allocations: 1.022 MB / 0.5062 GB, free: 16.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003677/0.4361, allocations: 1.969 MB / 0.5081 GB, free: 16.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006758/0.4429, allocations: 2.374 MB / 0.5104 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01609/0.459, allocations: 7.737 MB / 0.518 GB, free: 14.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4591, allocations: 0 / 0.518 GB, free: 14.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4591, allocations: 0 / 0.518 GB, free: 14.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003845/0.4595, allocations: 0.5312 kB / 0.518 GB, free: 14.76 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.01565/0.4751, allocations: 5.064 MB / 0.5229 GB, free: 12.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.4752, allocations: 12.83 kB / 0.5229 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.4857, allocations: 3.187 MB / 0.526 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006915/0.4927, allocations: 2.381 MB / 0.5284 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.4928, allocations: 246.4 kB / 0.5286 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.4939, allocations: 330 kB / 0.5289 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/0.5127, allocations: 12.23 MB / 0.5409 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001144/0.5129, allocations: 37.22 kB / 0.5409 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004754/0.5133, allocations: 155.5 kB / 0.5411 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003975/0.5173, allocations: 2.848 MB / 0.5438 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02225/0.5396, allocations: 11.13 MB / 0.5547 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06272/0.6024, allocations: 40.51 MB / 0.5943 GB, free: 15.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009366/0.6118, allocations: 4.688 MB / 0.5988 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003333/0.6152, allocations: 2.431 MB / 0.6012 GB, free: 8.363 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001187/0.6164, allocations: 1.321 MB / 0.6025 GB, free: 6.828 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.6164, allocations: 59.75 kB / 0.6026 GB, free: 6.766 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 3.987e-06/0.6164, allocations: 0 / 0.6026 GB, free: 6.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.0428/0.6592, allocations: 18.69 MB / 0.6208 GB, free: 3.969 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.6593, allocations: 73.41 kB / 0.6209 GB, free: 3.887 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004964/0.6643, allocations: 3.163 MB / 0.624 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000472/0.6648, allocations: 64.75 kB / 0.624 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/0.6671, allocations: 3.108 MB / 0.6271 GB, free: 13.53 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/0.6684, allocations: 0.9748 MB / 0.628 GB, free: 12.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001834/0.6702, allocations: 1.186 MB / 0.6292 GB, free: 11.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.6703, allocations: 301.1 kB / 0.6295 GB, free: 11.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003751/0.6741, allocations: 2.471 MB / 0.6319 GB, free: 8.598 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006752/0.6809, allocations: 5.723 MB / 0.6375 GB, free: 1.324 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/0.6922, allocations: 8.995 MB / 0.6462 GB, free: 7.215 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.212e-05/0.6923, allocations: 32 kB / 0.6463 GB, free: 7.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01554/0.7079, allocations: 9.002 MB / 0.6551 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.265e-05/0.708, allocations: 56 kB / 0.6551 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/0.7081, allocations: 112 kB / 0.6552 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002925/0.711, allocations: 1.055 MB / 0.6563 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004236/0.7153, allocations: 1.345 MB / 0.6576 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006876/0.7222, allocations: 5.54 MB / 0.663 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003811/0.726, allocations: 326.9 kB / 0.6633 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006429/0.7267, allocations: 336 kB / 0.6636 GB, free: 5.672 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.004143/0.7308, allocations: 2.409 MB / 0.666 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005115/0.7313, allocations: 312 kB / 0.6663 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008552/0.7399, allocations: 5.374 MB / 0.6715 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-05/0.74, allocations: 47.98 kB / 0.6716 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.74, allocations: 4.094 kB / 0.6716 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.938e-05/0.74, allocations: 15.94 kB / 0.6716 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02378/0.7638, allocations: 13.01 MB / 0.6843 GB, free: 248 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.7639, allocations: 20.81 kB / 0.6843 GB, free: 228 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001708/0.7656, allocations: 419.3 kB / 0.6847 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002655/0.7682, allocations: 0.8952 MB / 0.6856 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.7685, allocations: 51.98 kB / 0.6856 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005886/0.7744, allocations: 4.828 MB / 0.6903 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/0.7744, allocations: 15.94 kB / 0.6904 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.7854, allocations: 8.02 MB / 0.6982 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000859/0.7863, allocations: 361.1 kB / 0.6985 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003916/0.7867, allocations: 58.97 kB / 0.6986 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.7879, allocations: 159.7 kB / 0.6987 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003677/0.7883, allocations: 165.6 kB / 0.6989 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001745/0.7885, allocations: 79.98 kB / 0.699 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002912/0.7914, allocations: 1.956 MB / 0.7009 GB, free: 14.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7914, allocations: 0 / 0.7009 GB, free: 14.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004348/0.7958, allocations: 1.062 MB / 0.7019 GB, free: 13.8 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.0004116/0.7962, allocations: 197.9 kB / 0.7021 GB, free: 13.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01044/0.8066, allocations: 6.051 MB / 0.708 GB, free: 7.562 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.001e-05/0.8067, allocations: 4 kB / 0.708 GB, free: 7.559 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003228/0.8099, allocations: 2.257 MB / 0.7102 GB, free: 5.293 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002549/0.8125, allocations: 446.6 kB / 0.7107 GB, free: 4.863 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2616/1.074, allocations: 11.23 MB / 0.7216 GB, free: 195.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007605/1.082, allocations: 3.71 MB / 0.7252 GB, free: 194.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005645/1.087, allocations: 2.149 MB / 0.7273 GB, free: 194.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008939/1.088, allocations: 235.7 kB / 0.7276 GB, free: 194.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.088, allocations: 3.5 kB / 0.7276 GB, free: 194.7 MB / 0.545 GB Notification: Performance of Templates: time 0.0555/1.144, allocations: 32.58 MB / 0.7594 GB, free: 172.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches