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.001142/0.001142, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.228/0.228, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 76.16 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4529/0.4545, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01813/0.4726, allocations: 14.95 MB / 0.5456 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.484, allocations: 4.417 MB / 0.5499 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00385/0.4879, allocations: 79.81 kB / 0.55 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004536/0.4925, allocations: 2.223 MB / 0.5522 GB, free: 11.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005563/0.4981, allocations: 1.985 MB / 0.5541 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.4998, allocations: 0.6043 MB / 0.5547 GB, free: 9.383 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006278/0.5061, allocations: 4.313 MB / 0.5589 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004227/0.5103, allocations: 3.158 MB / 0.562 GB, free: 1.859 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003487/0.5138, allocations: 1.596 MB / 0.5635 GB, free: 264 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003417/0.5173, allocations: 2.212 MB / 0.5657 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.5183, allocations: 348 kB / 0.566 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002142/0.5204, allocations: 1.034 MB / 0.567 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001778/0.5222, allocations: 1.967 MB / 0.569 GB, free: 10.69 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002688/0.5249, allocations: 2.376 MB / 0.5713 GB, free: 8.301 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009016/0.534, allocations: 7.736 MB / 0.5788 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.534, allocations: 4 kB / 0.5788 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.534, allocations: 0 / 0.5788 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002283/0.5343, allocations: 0 / 0.5788 GB, free: 0.5352 MB / 430.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.01215/0.5464, allocations: 5.057 MB / 0.5838 GB, free: 11.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.5465, allocations: 12.03 kB / 0.5838 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/0.5575, allocations: 3.188 MB / 0.5869 GB, free: 8.195 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006172/0.5637, allocations: 2.381 MB / 0.5892 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002603/0.564, allocations: 246.6 kB / 0.5895 GB, free: 5.52 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001181/0.5652, allocations: 339.6 kB / 0.5898 GB, free: 5.188 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0205/0.5857, allocations: 12.23 MB / 0.6017 GB, free: 8.422 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.5859, allocations: 39.66 kB / 0.6018 GB, free: 8.383 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005102/0.5865, allocations: 147.8 kB / 0.6019 GB, free: 8.238 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004798/0.5913, allocations: 2.848 MB / 0.6047 GB, free: 5.383 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0246/0.6159, allocations: 11.13 MB / 0.6156 GB, free: 10.23 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09233/0.7083, allocations: 40.49 MB / 0.6551 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01809/0.7264, allocations: 4.684 MB / 0.6597 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006419/0.7329, allocations: 2.438 MB / 0.6621 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002195/0.7351, allocations: 1.323 MB / 0.6634 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.896e-05/0.7352, allocations: 60.56 kB / 0.6634 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 8.206e-06/0.7353, allocations: 0 / 0.6634 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.08381/0.8191, allocations: 18.69 MB / 0.6817 GB, free: 4.887 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.8192, allocations: 73.41 kB / 0.6817 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007233/0.8265, allocations: 3.167 MB / 0.6848 GB, free: 1.621 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009247/0.8274, allocations: 57.7 kB / 0.6849 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003566/0.831, allocations: 3.118 MB / 0.6879 GB, free: 14.39 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00223/0.8333, allocations: 0.9635 MB / 0.6889 GB, free: 13.42 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002537/0.8358, allocations: 1.187 MB / 0.69 GB, free: 12.22 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.836, allocations: 305.1 kB / 0.6903 GB, free: 11.92 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006504/0.8425, allocations: 2.467 MB / 0.6927 GB, free: 9.445 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01052/0.8531, allocations: 5.734 MB / 0.6983 GB, free: 2.105 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01818/0.8713, allocations: 8.98 MB / 0.7071 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001692/0.8715, allocations: 32 kB / 0.7071 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.0335/0.9051, allocations: 9 MB / 0.7159 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002648/0.9054, allocations: 56 kB / 0.716 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003088/0.9057, allocations: 112 kB / 0.7161 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005967/0.9117, allocations: 1.057 MB / 0.7171 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009127/0.9209, allocations: 1.349 MB / 0.7184 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/0.9338, allocations: 5.542 MB / 0.7238 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00666/0.9405, allocations: 323.7 kB / 0.7242 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001484/0.942, allocations: 344 kB / 0.7245 GB, free: 5.57 MB / 0.5762 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.006265/0.9483, allocations: 2.413 MB / 0.7268 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/0.9495, allocations: 308 kB / 0.7271 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3926/1.342, allocations: 5.364 MB / 0.7324 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001008/1.342, allocations: 48.09 kB / 0.7324 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/1.342, allocations: 2.719 kB / 0.7324 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.738e-05/1.342, allocations: 12.34 kB / 0.7324 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.367, allocations: 13.02 MB / 0.7451 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/1.367, allocations: 7.531 kB / 0.7451 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/1.368, allocations: 432.5 kB / 0.7456 GB, free: 171.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002572/1.371, allocations: 0.8906 MB / 0.7464 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/1.371, allocations: 54.67 kB / 0.7465 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005551/1.377, allocations: 4.831 MB / 0.7512 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.558e-05/1.377, allocations: 15.69 kB / 0.7512 GB, free: 169 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/1.387, allocations: 8.014 MB / 0.759 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.389, allocations: 369.7 kB / 0.7594 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003746/1.389, allocations: 47.98 kB / 0.7594 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/1.39, allocations: 159.6 kB / 0.7596 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/1.391, allocations: 169.1 kB / 0.7598 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.391, allocations: 79.58 kB / 0.7598 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002459/1.393, allocations: 1.952 MB / 0.7617 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/1.393, allocations: 0 / 0.7617 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004199/1.398, allocations: 1.061 MB / 0.7628 GB, free: 160.2 MB / 0.5762 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.0004623/1.398, allocations: 209.6 kB / 0.763 GB, free: 160 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007264/1.405, allocations: 6.047 MB / 0.7689 GB, free: 154 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/1.405, allocations: 4 kB / 0.7689 GB, free: 154 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002357/1.408, allocations: 2.257 MB / 0.7711 GB, free: 151.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/1.41, allocations: 447.1 kB / 0.7715 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/1.427, allocations: 11.24 MB / 0.7825 GB, free: 140 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00595/1.433, allocations: 3.708 MB / 0.7861 GB, free: 136.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004982/1.438, allocations: 2.15 MB / 0.7882 GB, free: 134.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/1.439, allocations: 239.4 kB / 0.7884 GB, free: 133.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.523e-06/1.439, allocations: 4 kB / 0.7884 GB, free: 133.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.06081/1.5, allocations: 34.36 MB / 0.822 GB, free: 99.71 MB / 0.5762 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