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.001056/0.001056, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 75.88 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 62.45 MB / 481.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01491/0.1197, allocations: 14.96 MB / 496.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007776/0.1275, allocations: 4.415 MB / 0.4891 GB, free: 1.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.1287, allocations: 75.88 kB / 0.4892 GB, free: 1.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003718/0.1324, allocations: 2.23 MB / 0.4913 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003541/0.136, allocations: 1.969 MB / 0.4933 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.1371, allocations: 0.6083 MB / 0.4938 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004286/0.1414, allocations: 4.321 MB / 0.4981 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.1445, allocations: 3.154 MB / 0.5011 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.1462, allocations: 1.569 MB / 0.5027 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002324/0.1486, allocations: 2.215 MB / 0.5048 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004681/0.149, allocations: 348 kB / 0.5052 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1867/0.3358, allocations: 1.018 MB / 0.5062 GB, free: 16.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002826/0.3387, allocations: 1.972 MB / 0.5081 GB, free: 16.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00245/0.3411, allocations: 2.378 MB / 0.5104 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007688/0.3488, allocations: 7.737 MB / 0.518 GB, free: 14.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3488, allocations: 1.562 kB / 0.518 GB, free: 14.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3488, allocations: 0 / 0.518 GB, free: 14.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001434/0.349, allocations: 0 / 0.518 GB, free: 14.79 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.009276/0.3583, allocations: 5.059 MB / 0.5229 GB, free: 12.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3583, allocations: 11.14 kB / 0.5229 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01039/0.3687, allocations: 3.188 MB / 0.526 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006328/0.3751, allocations: 2.376 MB / 0.5284 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.3753, allocations: 249.4 kB / 0.5286 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008385/0.3761, allocations: 336.7 kB / 0.5289 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/0.3916, allocations: 12.23 MB / 0.5409 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-05/0.3917, allocations: 42.8 kB / 0.5409 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000419/0.3921, allocations: 152.1 kB / 0.5411 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003604/0.3958, allocations: 2.844 MB / 0.5438 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/0.4129, allocations: 11.13 MB / 0.5547 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0502/0.4632, allocations: 40.51 MB / 0.5943 GB, free: 15.74 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008519/0.4717, allocations: 4.678 MB / 0.5988 GB, free: 10.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002988/0.4747, allocations: 2.438 MB / 0.6012 GB, free: 8.414 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001235/0.476, allocations: 1.32 MB / 0.6025 GB, free: 6.883 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.476, allocations: 52.56 kB / 0.6025 GB, free: 6.824 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 5.51e-06/0.476, allocations: 3.094 kB / 0.6025 GB, free: 6.824 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.04227/0.5183, allocations: 18.68 MB / 0.6208 GB, free: 4.027 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.5184, allocations: 76.41 kB / 0.6209 GB, free: 3.945 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004471/0.5229, allocations: 3.167 MB / 0.624 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002175/0.5231, allocations: 64.98 kB / 0.624 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.5249, allocations: 3.103 MB / 0.627 GB, free: 13.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008846/0.5258, allocations: 0.9785 MB / 0.628 GB, free: 12.62 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001591/0.5274, allocations: 1.183 MB / 0.6292 GB, free: 11.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.445e-05/0.5275, allocations: 305.1 kB / 0.6294 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/0.5308, allocations: 2.467 MB / 0.6319 GB, free: 8.652 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/0.5361, allocations: 5.728 MB / 0.6375 GB, free: 1.375 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009802/0.5459, allocations: 8.984 MB / 0.6462 GB, free: 7.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.607e-05/0.546, allocations: 36 kB / 0.6463 GB, free: 7.234 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01447/0.5604, allocations: 9.013 MB / 0.6551 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.744e-05/0.5605, allocations: 52 kB / 0.6551 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/0.5607, allocations: 116 kB / 0.6552 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002999/0.5637, allocations: 1.047 MB / 0.6562 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003968/0.5676, allocations: 1.353 MB / 0.6576 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00713/0.5748, allocations: 5.536 MB / 0.663 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003568/0.5784, allocations: 323.8 kB / 0.6633 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005451/0.5789, allocations: 340 kB / 0.6636 GB, free: 5.707 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.004016/0.583, allocations: 2.412 MB / 0.666 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/0.5834, allocations: 312 kB / 0.6663 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008899/0.5923, allocations: 5.371 MB / 0.6715 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-05/0.5924, allocations: 47.98 kB / 0.6715 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.5924, allocations: 0 / 0.6715 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.147e-05/0.5925, allocations: 15.95 kB / 0.6716 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02097/0.6134, allocations: 13.01 MB / 0.6843 GB, free: 292 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/0.6135, allocations: 16.03 kB / 0.6843 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/0.6153, allocations: 419.6 kB / 0.6847 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002728/0.618, allocations: 0.8979 MB / 0.6856 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001805/0.6182, allocations: 56.86 kB / 0.6856 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006172/0.6244, allocations: 4.837 MB / 0.6903 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/0.6244, allocations: 15.94 kB / 0.6904 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/0.6356, allocations: 8.015 MB / 0.6982 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000768/0.6364, allocations: 365.2 kB / 0.6985 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003814/0.6368, allocations: 55.98 kB / 0.6986 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.6381, allocations: 154.3 kB / 0.6987 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003635/0.6384, allocations: 165.6 kB / 0.6989 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/0.6386, allocations: 75.98 kB / 0.699 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002844/0.6415, allocations: 1.952 MB / 0.7009 GB, free: 14.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6415, allocations: 0 / 0.7009 GB, free: 14.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004217/0.6457, allocations: 1.066 MB / 0.7019 GB, free: 13.85 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.0004516/0.6462, allocations: 212.2 kB / 0.7021 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008362/0.6545, allocations: 6.046 MB / 0.708 GB, free: 7.605 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.6546, allocations: 64 / 0.708 GB, free: 7.605 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002949/0.6575, allocations: 2.257 MB / 0.7102 GB, free: 5.336 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.6598, allocations: 452.7 kB / 0.7106 GB, free: 4.906 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2144/0.8742, allocations: 11.23 MB / 0.7216 GB, free: 195.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004161/0.8784, allocations: 3.705 MB / 0.7252 GB, free: 194.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004205/0.8826, allocations: 2.155 MB / 0.7273 GB, free: 194.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007196/0.8833, allocations: 243.3 kB / 0.7276 GB, free: 194.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.22e-07/0.8833, allocations: 1.438 kB / 0.7276 GB, free: 194.7 MB / 0.545 GB Notification: Performance of Templates: time 0.05182/0.9352, allocations: 32.57 MB / 0.7594 GB, free: 172.4 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 gbode -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