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.001206/0.001206, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2297/0.2297, allocations: 46.1 MB / 343.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 77.69 kB / 417 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1417, allocations: 62.44 MB / 479.5 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3383/0.4801, allocations: 46.08 MB / 0.5132 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02745/0.5076, allocations: 9.448 MB / 0.5225 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01358/0.5212, allocations: 189.9 kB / 0.5226 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00518/0.5264, allocations: 2.125 MB / 0.5247 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.5326, allocations: 1.854 MB / 0.5265 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002889/0.5355, allocations: 0.5784 MB / 0.5271 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008604/0.5441, allocations: 4.31 MB / 0.5313 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004996/0.5492, allocations: 3.295 MB / 0.5345 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004163/0.5534, allocations: 1.589 MB / 0.5361 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003982/0.5574, allocations: 2.425 MB / 0.5384 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008279/0.5582, allocations: 342.5 kB / 0.5388 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.5607, allocations: 1.046 MB / 0.5398 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.5624, allocations: 1.987 MB / 0.5417 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003264/0.5657, allocations: 2.401 MB / 0.5441 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.5757, allocations: 7.458 MB / 0.5514 GB, free: 8.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.59e-05/0.5758, allocations: 3.984 kB / 0.5514 GB, free: 8.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.859e-06/0.5758, allocations: 0 / 0.5514 GB, free: 8.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005194/0.5763, allocations: 0 / 0.5514 GB, free: 8.418 MB / 398.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.01368/0.59, allocations: 5.058 MB / 0.5563 GB, free: 3.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.5901, allocations: 12.03 kB / 0.5563 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01064/0.6007, allocations: 3.185 MB / 0.5594 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005583/0.6064, allocations: 2.346 MB / 0.5617 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001953/0.6066, allocations: 253.6 kB / 0.562 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008243/0.6074, allocations: 329.3 kB / 0.5623 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02312/0.6305, allocations: 12.23 MB / 0.5742 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.6307, allocations: 39.66 kB / 0.5743 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004843/0.6312, allocations: 152.8 kB / 0.5744 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004712/0.636, allocations: 2.848 MB / 0.5772 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02308/0.6591, allocations: 11.12 MB / 0.588 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0735/0.7326, allocations: 40.71 MB / 0.6278 GB, free: 9.117 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01125/0.7439, allocations: 4.694 MB / 0.6324 GB, free: 4.207 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004301/0.7483, allocations: 2.428 MB / 0.6348 GB, free: 1.781 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00166/0.75, allocations: 1.315 MB / 0.636 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.522e-05/0.7501, allocations: 60.44 kB / 0.6361 GB, free: 192 kB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 7.544e-06/0.7501, allocations: 4 kB / 0.6361 GB, free: 188 kB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.05303/0.8031, allocations: 18.68 MB / 0.6543 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.8033, allocations: 73.41 kB / 0.6544 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007556/0.8108, allocations: 3.167 MB / 0.6575 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007873/0.8117, allocations: 60.28 kB / 0.6576 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003367/0.8151, allocations: 3.112 MB / 0.6606 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001976/0.8171, allocations: 0.9711 MB / 0.6616 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004228/0.8213, allocations: 1.181 MB / 0.6627 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.8215, allocations: 309 kB / 0.663 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00538/0.8269, allocations: 2.467 MB / 0.6654 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00802/0.8349, allocations: 5.735 MB / 0.671 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01355/0.8485, allocations: 8.977 MB / 0.6798 GB, free: 80 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/0.8487, allocations: 36 kB / 0.6798 GB, free: 44 kB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02136/0.8701, allocations: 9.01 MB / 0.6886 GB, free: 7.012 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.8703, allocations: 54.03 kB / 0.6887 GB, free: 6.961 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00025/0.8706, allocations: 112 kB / 0.6888 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003407/0.874, allocations: 1.057 MB / 0.6898 GB, free: 5.793 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005464/0.8795, allocations: 1.353 MB / 0.6911 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00907/0.8886, allocations: 5.539 MB / 0.6965 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005597/0.8942, allocations: 319.8 kB / 0.6968 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001835/0.8961, allocations: 350.7 kB / 0.6972 GB, free: 14.11 MB / 0.545 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.006521/0.9026, allocations: 2.405 MB / 0.6995 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/0.9038, allocations: 308 kB / 0.6998 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/0.9153, allocations: 5.374 MB / 0.7051 GB, free: 5.957 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.115e-05/0.9154, allocations: 47.98 kB / 0.7051 GB, free: 5.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.406e-05/0.9154, allocations: 4 kB / 0.7051 GB, free: 5.906 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-05/0.9155, allocations: 11.95 kB / 0.7051 GB, free: 5.895 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.339/1.254, allocations: 13.06 MB / 0.7179 GB, free: 190.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.122e-05/1.255, allocations: 11.98 kB / 0.7179 GB, free: 190.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001765/1.256, allocations: 424.6 kB / 0.7183 GB, free: 190.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003058/1.259, allocations: 0.8968 MB / 0.7192 GB, free: 190 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00027/1.26, allocations: 58.28 kB / 0.7192 GB, free: 189.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006798/1.266, allocations: 4.831 MB / 0.7239 GB, free: 187.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/1.266, allocations: 15.69 kB / 0.724 GB, free: 187.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.278, allocations: 8.024 MB / 0.7318 GB, free: 184.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009115/1.279, allocations: 359.5 kB / 0.7321 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004191/1.28, allocations: 50.42 kB / 0.7322 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/1.281, allocations: 154.2 kB / 0.7323 GB, free: 184.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004212/1.281, allocations: 165.5 kB / 0.7325 GB, free: 184.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/1.281, allocations: 78.09 kB / 0.7326 GB, free: 184.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002545/1.284, allocations: 1.962 MB / 0.7345 GB, free: 183.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.91e-07/1.284, allocations: 2.625 kB / 0.7345 GB, free: 183.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004666/1.289, allocations: 1.061 MB / 0.7355 GB, free: 183.5 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.0004919/1.289, allocations: 201.7 kB / 0.7357 GB, free: 183.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01403/1.303, allocations: 9.647 MB / 0.7451 GB, free: 180.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/1.303, allocations: 4 kB / 0.7451 GB, free: 180.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002915/1.306, allocations: 2.264 MB / 0.7473 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/1.309, allocations: 453.2 kB / 0.7478 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/1.331, allocations: 13.8 MB / 0.7613 GB, free: 165.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006131/1.337, allocations: 3.707 MB / 0.7649 GB, free: 162.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005115/1.342, allocations: 2.153 MB / 0.767 GB, free: 160.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.344, allocations: 239.4 kB / 0.7672 GB, free: 160.3 MB / 0.545 GB Notification: Performance of SimCode: time 2.274e-06/1.344, allocations: 3.938 kB / 0.7672 GB, free: 160.3 MB / 0.545 GB Notification: Performance of Templates: time 0.06369/1.407, allocations: 37.17 MB / 0.8035 GB, free: 123.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 -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