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.001577/0.001577, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001909/0.00191, allocations: 212.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 83.81 kB / 482 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3331, allocations: 62.43 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01584/0.349, allocations: 14.96 MB / 0.5463 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009779/0.3588, allocations: 4.412 MB / 0.5506 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00304/0.3619, allocations: 79.88 kB / 0.5507 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005062/0.367, allocations: 2.23 MB / 0.5528 GB, free: 11.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006215/0.3733, allocations: 1.98 MB / 0.5548 GB, free: 9.992 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002036/0.3754, allocations: 0.6083 MB / 0.5554 GB, free: 9.383 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006634/0.382, allocations: 4.311 MB / 0.5596 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004452/0.3865, allocations: 3.154 MB / 0.5626 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003164/0.3897, allocations: 1.592 MB / 0.5642 GB, free: 272 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003661/0.3934, allocations: 2.227 MB / 0.5664 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001207/0.3947, allocations: 340 kB / 0.5667 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.3976, allocations: 1.034 MB / 0.5677 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002704/0.4003, allocations: 1.967 MB / 0.5696 GB, free: 10.69 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004614/0.405, allocations: 2.38 MB / 0.572 GB, free: 8.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.4156, allocations: 7.736 MB / 0.5795 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.4156, allocations: 0 / 0.5795 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4157, allocations: 0 / 0.5795 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002748/0.4159, allocations: 0 / 0.5795 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.01186/0.4278, allocations: 5.054 MB / 0.5844 GB, free: 11.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4279, allocations: 12.03 kB / 0.5845 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0118/0.4397, allocations: 3.184 MB / 0.5876 GB, free: 8.203 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005351/0.4451, allocations: 2.381 MB / 0.5899 GB, free: 5.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.4454, allocations: 250.6 kB / 0.5901 GB, free: 5.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001607/0.447, allocations: 335.6 kB / 0.5905 GB, free: 5.195 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02432/0.4713, allocations: 12.24 MB / 0.6024 GB, free: 8.422 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002734/0.4717, allocations: 39.7 kB / 0.6024 GB, free: 8.383 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001469/0.4731, allocations: 147.8 kB / 0.6026 GB, free: 8.238 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005142/0.4783, allocations: 2.848 MB / 0.6054 GB, free: 5.383 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02389/0.5022, allocations: 11.13 MB / 0.6162 GB, free: 10.24 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06475/0.567, allocations: 40.5 MB / 0.6558 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.5771, allocations: 4.689 MB / 0.6604 GB, free: 11.77 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00366/0.5808, allocations: 2.435 MB / 0.6627 GB, free: 9.336 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001296/0.5821, allocations: 1.315 MB / 0.664 GB, free: 7.805 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.001e-05/0.5822, allocations: 56.56 kB / 0.6641 GB, free: 7.738 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=249): time 5.951e-06/0.5822, allocations: 0 / 0.6641 GB, free: 7.738 MB / 0.5138 GB Notification: Performance of matching and sorting (n=267): time 0.04967/0.6319, allocations: 18.69 MB / 0.6823 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/0.632, allocations: 81.34 kB / 0.6824 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005806/0.6378, allocations: 3.167 MB / 0.6855 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005307/0.6384, allocations: 61.69 kB / 0.6856 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002537/0.641, allocations: 3.118 MB / 0.6886 GB, free: 14.39 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001458/0.6424, allocations: 0.9674 MB / 0.6895 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002942/0.6454, allocations: 1.183 MB / 0.6907 GB, free: 12.22 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.6455, allocations: 305.1 kB / 0.691 GB, free: 11.92 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004499/0.6501, allocations: 2.467 MB / 0.6934 GB, free: 9.445 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007566/0.6577, allocations: 5.731 MB / 0.699 GB, free: 2.109 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/0.6696, allocations: 8.98 MB / 0.7078 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/0.6698, allocations: 36 kB / 0.7078 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01927/0.689, allocations: 8.993 MB / 0.7166 GB, free: 14.49 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001758/0.6893, allocations: 60.03 kB / 0.7166 GB, free: 14.43 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002376/0.6895, allocations: 112 kB / 0.7167 GB, free: 14.32 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003662/0.6932, allocations: 1.054 MB / 0.7178 GB, free: 13.27 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004954/0.6982, allocations: 1.349 MB / 0.7191 GB, free: 11.91 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007771/0.706, allocations: 5.555 MB / 0.7245 GB, free: 6.223 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004137/0.7102, allocations: 319.7 kB / 0.7248 GB, free: 5.91 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/0.7113, allocations: 348 kB / 0.7252 GB, free: 5.57 MB / 0.5763 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.004945/0.7163, allocations: 2.401 MB / 0.7275 GB, free: 3.156 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000861/0.7171, allocations: 308 kB / 0.7278 GB, free: 2.852 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2948/1.012, allocations: 5.364 MB / 0.733 GB, free: 176.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.282e-05/1.012, allocations: 49.09 kB / 0.7331 GB, free: 176.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/1.012, allocations: 9.188 kB / 0.7331 GB, free: 176.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.209e-05/1.012, allocations: 12.55 kB / 0.7331 GB, free: 176.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/1.031, allocations: 13.01 MB / 0.7458 GB, free: 171.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/1.031, allocations: 11.34 kB / 0.7458 GB, free: 171.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/1.032, allocations: 426.7 kB / 0.7462 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/1.035, allocations: 0.8898 MB / 0.7471 GB, free: 171.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002229/1.035, allocations: 62.36 kB / 0.7471 GB, free: 171.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004896/1.04, allocations: 4.839 MB / 0.7519 GB, free: 169.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/1.04, allocations: 12.81 kB / 0.7519 GB, free: 169.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009384/1.049, allocations: 8.021 MB / 0.7597 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007605/1.05, allocations: 358.5 kB / 0.7601 GB, free: 163.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004195/1.051, allocations: 51.98 kB / 0.7601 GB, free: 163.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/1.052, allocations: 151.2 kB / 0.7603 GB, free: 163.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003263/1.052, allocations: 169.4 kB / 0.7604 GB, free: 163.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/1.052, allocations: 87.81 kB / 0.7605 GB, free: 163.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002261/1.055, allocations: 1.956 MB / 0.7624 GB, free: 161.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.1e-07/1.055, allocations: 0 / 0.7624 GB, free: 161.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.003986/1.059, allocations: 1.057 MB / 0.7634 GB, free: 160.2 MB / 0.5763 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.0004746/1.059, allocations: 209.2 kB / 0.7636 GB, free: 160 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.007103/1.066, allocations: 6.045 MB / 0.7695 GB, free: 154 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/1.066, allocations: 0 / 0.7695 GB, free: 154 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.002527/1.069, allocations: 2.259 MB / 0.7717 GB, free: 151.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/1.071, allocations: 445 kB / 0.7722 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.086, allocations: 11.77 MB / 0.7837 GB, free: 139.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003024/1.09, allocations: 3.704 MB / 0.7873 GB, free: 135.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/1.091, allocations: 287.4 kB / 0.7876 GB, free: 135.5 MB / 0.5763 GB Notification: Performance of SimCode: time 1.082e-06/1.091, allocations: 0 / 0.7876 GB, free: 135.5 MB / 0.5763 GB Notification: Performance of Templates: time 0.08752/1.178, allocations: 84.66 MB / 0.8702 GB, free: 50.91 MB / 0.5763 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/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