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.001754/0.001754, allocations: 104 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002019/0.002019, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.12 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003209/0.003209, allocations: 82.08 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1972, allocations: 62.46 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01968/0.217, allocations: 14.94 MB / 495.1 MB, free: 6.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.2289, allocations: 4.427 MB / 499.5 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003204/0.2322, allocations: 75.88 kB / 499.6 MB, free: 1.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005039/0.2372, allocations: 2.215 MB / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00632/0.2437, allocations: 1.988 MB / 0.492 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.2456, allocations: 0.6083 MB / 0.4926 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00718/0.2528, allocations: 4.303 MB / 0.4968 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004872/0.2577, allocations: 3.15 MB / 0.4998 GB, free: 5.316 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003291/0.261, allocations: 1.569 MB / 0.5014 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00409/0.2651, allocations: 2.212 MB / 0.5035 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000956/0.2661, allocations: 348 kB / 0.5039 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002521/0.2686, allocations: 1.034 MB / 0.5049 GB, free: 152 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2637/0.5323, allocations: 1.961 MB / 0.5068 GB, free: 16.35 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004367/0.5367, allocations: 2.38 MB / 0.5091 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01227/0.549, allocations: 7.414 MB / 0.5163 GB, free: 14.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.5491, allocations: 1 kB / 0.5163 GB, free: 14.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5491, allocations: 0 / 0.5163 GB, free: 14.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000284/0.5494, allocations: 0 / 0.5163 GB, free: 14.57 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.01281/0.5622, allocations: 5.063 MB / 0.5213 GB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.5622, allocations: 9.531 kB / 0.5213 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01081/0.5731, allocations: 3.188 MB / 0.5244 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005625/0.5787, allocations: 2.342 MB / 0.5267 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.5789, allocations: 251.7 kB / 0.5269 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009663/0.5799, allocations: 329.2 kB / 0.5273 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01817/0.5981, allocations: 12.23 MB / 0.5392 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001009/0.5982, allocations: 40.41 kB / 0.5392 GB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004556/0.5987, allocations: 149.4 kB / 0.5394 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00408/0.6028, allocations: 2.849 MB / 0.5422 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02436/0.6271, allocations: 11.14 MB / 0.553 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07214/0.6993, allocations: 40.71 MB / 0.5928 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.7095, allocations: 4.679 MB / 0.5974 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/0.7131, allocations: 2.431 MB / 0.5997 GB, free: 8.898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001366/0.7145, allocations: 1.322 MB / 0.601 GB, free: 7.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.7146, allocations: 53.19 kB / 0.6011 GB, free: 7.305 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 5.119e-06/0.7146, allocations: 4 kB / 0.6011 GB, free: 7.301 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.04624/0.7608, allocations: 18.7 MB / 0.6193 GB, free: 4.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/0.7609, allocations: 73.41 kB / 0.6194 GB, free: 4.418 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005913/0.7669, allocations: 3.167 MB / 0.6225 GB, free: 1.238 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003715/0.7672, allocations: 57.7 kB / 0.6226 GB, free: 1.176 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/0.7696, allocations: 3.117 MB / 0.6256 GB, free: 14.06 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.7709, allocations: 0.9724 MB / 0.6265 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002142/0.7731, allocations: 1.181 MB / 0.6277 GB, free: 11.9 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.7732, allocations: 305.1 kB / 0.628 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003617/0.7768, allocations: 2.467 MB / 0.6304 GB, free: 9.129 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006202/0.783, allocations: 5.73 MB / 0.636 GB, free: 1.852 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/0.794, allocations: 8.982 MB / 0.6448 GB, free: 7.746 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-05/0.7941, allocations: 32 kB / 0.6448 GB, free: 7.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01863/0.8127, allocations: 9.003 MB / 0.6536 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.8129, allocations: 52 kB / 0.6536 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002103/0.8131, allocations: 119.9 kB / 0.6538 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003252/0.8164, allocations: 1.055 MB / 0.6548 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004658/0.8211, allocations: 1.357 MB / 0.6561 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007541/0.8286, allocations: 5.535 MB / 0.6615 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004651/0.8333, allocations: 323.2 kB / 0.6618 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/0.8345, allocations: 340 kB / 0.6621 GB, free: 6.32 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.005958/0.8405, allocations: 2.415 MB / 0.6645 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008209/0.8413, allocations: 308 kB / 0.6648 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.8526, allocations: 5.374 MB / 0.67 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.361e-05/0.8527, allocations: 54.73 kB / 0.6701 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.927e-05/0.8527, allocations: 4 kB / 0.6701 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.02e-05/0.8528, allocations: 11.95 kB / 0.6701 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02757/0.8803, allocations: 13.05 MB / 0.6829 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.211e-05/0.8804, allocations: 19.94 kB / 0.6829 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/0.8822, allocations: 423.3 kB / 0.6833 GB, free: 424 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003077/0.8853, allocations: 0.8941 MB / 0.6842 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003178/0.8856, allocations: 50.42 kB / 0.6842 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006465/0.8921, allocations: 4.833 MB / 0.6889 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.489e-05/0.8922, allocations: 19.88 kB / 0.6889 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01261/0.9048, allocations: 8.027 MB / 0.6968 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.9059, allocations: 357.1 kB / 0.6971 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008303/0.9067, allocations: 59.92 kB / 0.6972 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/0.9086, allocations: 149.9 kB / 0.6973 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/0.909, allocations: 165.5 kB / 0.6975 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002023/0.9092, allocations: 79.98 kB / 0.6976 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004726/0.914, allocations: 1.952 MB / 0.6995 GB, free: 15.47 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.914, allocations: 1.125 kB / 0.6995 GB, free: 15.47 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006989/0.921, allocations: 1.07 MB / 0.7005 GB, free: 14.4 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.0008882/0.9219, allocations: 192.9 kB / 0.7007 GB, free: 14.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01835/0.9403, allocations: 9.648 MB / 0.7101 GB, free: 4.574 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/0.9403, allocations: 8.25 kB / 0.7101 GB, free: 4.566 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004463/0.9448, allocations: 2.246 MB / 0.7123 GB, free: 2.305 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004929/0.9497, allocations: 462.2 kB / 0.7128 GB, free: 1.867 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2894/1.239, allocations: 11.36 MB / 0.7238 GB, free: 196.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008323/1.248, allocations: 3.705 MB / 0.7275 GB, free: 195.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008174/1.256, allocations: 2.157 MB / 0.7296 GB, free: 195.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/1.257, allocations: 242.8 kB / 0.7298 GB, free: 195.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.833e-06/1.257, allocations: 0 / 0.7298 GB, free: 195.2 MB / 0.545 GB Notification: Performance of Templates: time 0.07386/1.331, allocations: 37.16 MB / 0.7661 GB, free: 165.8 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 -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