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.001589/0.001589, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001871/0.001871, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2145/0.2145, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 79.86 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4526/0.4539, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01729/0.4712, allocations: 14.95 MB / 0.5456 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01248/0.4837, allocations: 4.42 MB / 0.5499 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004232/0.488, allocations: 79.81 kB / 0.55 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004822/0.4928, allocations: 2.223 MB / 0.5522 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006491/0.4994, allocations: 1.977 MB / 0.5541 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.5013, allocations: 0.6161 MB / 0.5547 GB, free: 9.402 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006454/0.5077, allocations: 4.308 MB / 0.5589 GB, free: 5.086 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004301/0.5121, allocations: 3.155 MB / 0.562 GB, free: 1.883 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002763/0.5148, allocations: 1.557 MB / 0.5635 GB, free: 328 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003282/0.5181, allocations: 2.227 MB / 0.5657 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009781/0.5191, allocations: 344 kB / 0.566 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00272/0.5219, allocations: 1.03 MB / 0.567 GB, free: 12.72 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002316/0.5242, allocations: 1.964 MB / 0.5689 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003158/0.5274, allocations: 2.38 MB / 0.5713 GB, free: 8.355 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.5387, allocations: 7.772 MB / 0.5788 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.5387, allocations: 0 / 0.5788 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.5387, allocations: 4 kB / 0.5788 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002926/0.539, allocations: 0 / 0.5788 GB, free: 0.5508 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.0146/0.5536, allocations: 5.201 MB / 0.5839 GB, free: 11.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.5537, allocations: 8.031 kB / 0.5839 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.5652, allocations: 3.223 MB / 0.5871 GB, free: 8.027 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005295/0.5705, allocations: 2.382 MB / 0.5894 GB, free: 5.594 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001861/0.5707, allocations: 250.6 kB / 0.5896 GB, free: 5.348 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009965/0.5718, allocations: 327.7 kB / 0.59 GB, free: 5.027 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/0.5944, allocations: 12.24 MB / 0.6019 GB, free: 8.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002087/0.5947, allocations: 31.7 kB / 0.6019 GB, free: 8.219 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001362/0.596, allocations: 159.8 kB / 0.6021 GB, free: 8.062 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005249/0.6013, allocations: 2.844 MB / 0.6049 GB, free: 5.211 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02912/0.6304, allocations: 11.13 MB / 0.6157 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0729/0.7034, allocations: 40.59 MB / 0.6554 GB, free: 448 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00985/0.7133, allocations: 4.691 MB / 0.66 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003575/0.7169, allocations: 2.442 MB / 0.6623 GB, free: 9.082 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001397/0.7183, allocations: 1.319 MB / 0.6636 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/0.7184, allocations: 52.56 kB / 0.6637 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 6.071e-06/0.7184, allocations: 0 / 0.6637 GB, free: 7.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.04559/0.764, allocations: 18.76 MB / 0.682 GB, free: 4.574 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.7641, allocations: 77.41 kB / 0.6821 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006747/0.7709, allocations: 3.172 MB / 0.6852 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002412/0.7712, allocations: 65.69 kB / 0.6852 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002885/0.774, allocations: 3.237 MB / 0.6884 GB, free: 13.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001328/0.7754, allocations: 1.015 MB / 0.6894 GB, free: 12.94 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002495/0.7779, allocations: 1.199 MB / 0.6906 GB, free: 11.73 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.7781, allocations: 301.1 kB / 0.6909 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00398/0.7821, allocations: 2.467 MB / 0.6933 GB, free: 8.961 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007822/0.7899, allocations: 5.723 MB / 0.6989 GB, free: 1.633 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/0.8023, allocations: 8.988 MB / 0.7076 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/0.8025, allocations: 36 kB / 0.7077 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01785/0.8203, allocations: 9.017 MB / 0.7165 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.8205, allocations: 52 kB / 0.7165 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001884/0.8207, allocations: 116 kB / 0.7166 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003063/0.8237, allocations: 1.054 MB / 0.7177 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004218/0.828, allocations: 1.349 MB / 0.719 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007163/0.8351, allocations: 5.551 MB / 0.7244 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/0.8387, allocations: 331.7 kB / 0.7247 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007065/0.8394, allocations: 340 kB / 0.725 GB, free: 5.066 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.00407/0.8435, allocations: 2.401 MB / 0.7274 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006555/0.8441, allocations: 325.8 kB / 0.7277 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3305/1.175, allocations: 5.363 MB / 0.7329 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.27e-05/1.175, allocations: 49.7 kB / 0.733 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.175, allocations: 6.5 kB / 0.733 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/1.175, allocations: 11.44 kB / 0.733 GB, free: 177.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02124/1.196, allocations: 13.02 MB / 0.7457 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/1.196, allocations: 11.81 kB / 0.7457 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/1.198, allocations: 425.9 kB / 0.7461 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002544/1.2, allocations: 0.8972 MB / 0.747 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/1.2, allocations: 54.31 kB / 0.7471 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005138/1.206, allocations: 4.83 MB / 0.7518 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/1.206, allocations: 15.78 kB / 0.7518 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009768/1.215, allocations: 8.036 MB / 0.7596 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009489/1.216, allocations: 376 kB / 0.76 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/1.217, allocations: 59.05 kB / 0.7601 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/1.218, allocations: 151.5 kB / 0.7602 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003335/1.218, allocations: 169.4 kB / 0.7604 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/1.219, allocations: 83.89 kB / 0.7604 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002384/1.221, allocations: 1.952 MB / 0.7623 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.221, allocations: 3.969 kB / 0.7623 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004362/1.225, allocations: 1.064 MB / 0.7634 GB, free: 160.8 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.0005182/1.226, allocations: 199 kB / 0.7636 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007551/1.233, allocations: 6.052 MB / 0.7695 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.233, allocations: 0 / 0.7695 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002464/1.236, allocations: 2.25 MB / 0.7717 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/1.239, allocations: 451.9 kB / 0.7721 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/1.257, allocations: 11.4 MB / 0.7833 GB, free: 140.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004026/1.261, allocations: 3.706 MB / 0.7869 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004126/1.265, allocations: 2.153 MB / 0.789 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007388/1.266, allocations: 243.4 kB / 0.7892 GB, free: 134.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.303e-06/1.266, allocations: 0 / 0.7892 GB, free: 134.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.05648/1.322, allocations: 34.55 MB / 0.8229 GB, free: 99.87 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