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.001331/0.001331, allocations: 110.8 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001236, allocations: 208.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1937/0.1937, allocations: 46.1 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 75.88 kB / 482 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2783, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01457/0.2929, allocations: 14.95 MB / 0.5463 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008823/0.3018, allocations: 4.421 MB / 0.5506 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002495/0.3043, allocations: 83.81 kB / 0.5507 GB, free: 14.23 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003945/0.3083, allocations: 2.219 MB / 0.5528 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.3127, allocations: 2.039 MB / 0.5548 GB, free: 9.953 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.3141, allocations: 0.6122 MB / 0.5554 GB, free: 9.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.319, allocations: 4.315 MB / 0.5596 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002933/0.3219, allocations: 3.154 MB / 0.5627 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.3236, allocations: 1.588 MB / 0.5643 GB, free: 228 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002085/0.3257, allocations: 2.227 MB / 0.5664 GB, free: 13.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004703/0.3262, allocations: 340 kB / 0.5668 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.3278, allocations: 1.037 MB / 0.5678 GB, free: 12.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001398/0.3292, allocations: 1.96 MB / 0.5697 GB, free: 10.65 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001962/0.3312, allocations: 2.38 MB / 0.572 GB, free: 8.258 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00654/0.3377, allocations: 7.744 MB / 0.5796 GB, free: 500 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3377, allocations: 0 / 0.5796 GB, free: 500 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3378, allocations: 0 / 0.5796 GB, free: 500 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001179/0.3379, allocations: 0 / 0.5796 GB, free: 500 kB / 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.007492/0.3454, allocations: 5.061 MB / 0.5845 GB, free: 11.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3454, allocations: 8.031 kB / 0.5845 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009308/0.3547, allocations: 3.184 MB / 0.5876 GB, free: 8.152 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004094/0.3589, allocations: 2.381 MB / 0.59 GB, free: 5.719 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.359, allocations: 254.6 kB / 0.5902 GB, free: 5.469 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000643/0.3597, allocations: 327.7 kB / 0.5905 GB, free: 5.148 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/0.3759, allocations: 12.24 MB / 0.6025 GB, free: 8.375 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.3761, allocations: 31.66 kB / 0.6025 GB, free: 8.344 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004586/0.3766, allocations: 155.8 kB / 0.6026 GB, free: 8.191 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003972/0.3805, allocations: 2.844 MB / 0.6054 GB, free: 5.34 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01854/0.3991, allocations: 11.14 MB / 0.6163 GB, free: 10.19 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0492/0.4483, allocations: 40.49 MB / 0.6558 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008177/0.4566, allocations: 4.688 MB / 0.6604 GB, free: 11.73 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002847/0.4594, allocations: 2.438 MB / 0.6628 GB, free: 9.297 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001034/0.4605, allocations: 1.319 MB / 0.6641 GB, free: 7.758 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.4605, allocations: 52.56 kB / 0.6641 GB, free: 7.695 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=249): time 4.99e-06/0.4605, allocations: 0 / 0.6641 GB, free: 7.695 MB / 0.5138 GB Notification: Performance of matching and sorting (n=267): time 0.03791/0.4985, allocations: 18.7 MB / 0.6824 GB, free: 4.844 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.4985, allocations: 73.41 kB / 0.6825 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003863/0.5024, allocations: 3.167 MB / 0.6856 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002735/0.5027, allocations: 57.7 kB / 0.6856 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.5044, allocations: 3.117 MB / 0.6887 GB, free: 14.36 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008672/0.5053, allocations: 0.9635 MB / 0.6896 GB, free: 13.38 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/0.5066, allocations: 1.191 MB / 0.6908 GB, free: 12.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.911e-05/0.5067, allocations: 301.1 kB / 0.691 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003017/0.5098, allocations: 2.467 MB / 0.6935 GB, free: 9.406 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004823/0.5146, allocations: 5.734 MB / 0.6991 GB, free: 2.066 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009176/0.5238, allocations: 8.984 MB / 0.7078 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-05/0.5239, allocations: 35.94 kB / 0.7079 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01381/0.5377, allocations: 8.996 MB / 0.7167 GB, free: 14.43 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.177e-05/0.5379, allocations: 52 kB / 0.7167 GB, free: 14.38 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001458/0.538, allocations: 115.9 kB / 0.7168 GB, free: 14.27 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002808/0.5408, allocations: 1.057 MB / 0.7178 GB, free: 13.21 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003947/0.5448, allocations: 1.349 MB / 0.7192 GB, free: 11.86 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006485/0.5513, allocations: 5.549 MB / 0.7246 GB, free: 6.176 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003289/0.5546, allocations: 319.7 kB / 0.7249 GB, free: 5.863 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007513/0.5554, allocations: 348 kB / 0.7252 GB, free: 5.523 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.003612/0.559, allocations: 2.413 MB / 0.7276 GB, free: 3.098 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005577/0.5596, allocations: 308 kB / 0.7279 GB, free: 2.793 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2305/0.79, allocations: 5.363 MB / 0.7331 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.211e-05/0.7901, allocations: 48.33 kB / 0.7331 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/0.7902, allocations: 2.594 kB / 0.7332 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.049e-05/0.7902, allocations: 10.58 kB / 0.7332 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01796/0.8082, allocations: 13.01 MB / 0.7459 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/0.8082, allocations: 11.34 kB / 0.7459 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/0.8097, allocations: 419.5 kB / 0.7463 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/0.8119, allocations: 0.8957 MB / 0.7472 GB, free: 171.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.8121, allocations: 48.66 kB / 0.7472 GB, free: 171.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004494/0.8166, allocations: 4.834 MB / 0.7519 GB, free: 169.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.8166, allocations: 21.2 kB / 0.7519 GB, free: 169.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008464/0.8251, allocations: 8.007 MB / 0.7598 GB, free: 163.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005929/0.8257, allocations: 362.2 kB / 0.7601 GB, free: 163.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/0.826, allocations: 52 kB / 0.7602 GB, free: 163.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.8271, allocations: 159.1 kB / 0.7603 GB, free: 163.4 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/0.8274, allocations: 174 kB / 0.7605 GB, free: 163.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.8275, allocations: 79.84 kB / 0.7606 GB, free: 163.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002011/0.8295, allocations: 1.956 MB / 0.7625 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8295, allocations: 0 / 0.7625 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.003376/0.8329, allocations: 1.064 MB / 0.7635 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.0003576/0.8333, allocations: 204.6 kB / 0.7637 GB, free: 160 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.006211/0.8395, allocations: 6.051 MB / 0.7696 GB, free: 154 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/0.8395, allocations: 4 kB / 0.7696 GB, free: 154 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.002141/0.8417, allocations: 2.248 MB / 0.7718 GB, free: 151.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.8436, allocations: 449.8 kB / 0.7722 GB, free: 151.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.8564, allocations: 11.77 MB / 0.7837 GB, free: 139.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/0.8592, allocations: 3.708 MB / 0.7873 GB, free: 135.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009679/0.8602, allocations: 279.4 kB / 0.7876 GB, free: 135.4 MB / 0.5763 GB Notification: Performance of SimCode: time 6.61e-07/0.8602, allocations: 0 / 0.7876 GB, free: 135.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.07578/0.936, allocations: 84.67 MB / 0.8703 GB, free: 50.86 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