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.001011/0.001011, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2465/0.2465, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 75.88 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4239, allocations: 62.44 MB / 0.531 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01739/0.4413, allocations: 14.95 MB / 0.5456 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.4535, allocations: 4.418 MB / 0.5499 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00397/0.4575, allocations: 79.81 kB / 0.55 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004883/0.4625, allocations: 2.223 MB / 0.5522 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005979/0.4685, allocations: 2.039 MB / 0.5541 GB, free: 10.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.4702, allocations: 0.6083 MB / 0.5547 GB, free: 9.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008309/0.4785, allocations: 4.326 MB / 0.559 GB, free: 5.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005761/0.4843, allocations: 3.152 MB / 0.562 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003637/0.4879, allocations: 1.588 MB / 0.5636 GB, free: 360 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004971/0.4929, allocations: 2.231 MB / 0.5658 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001246/0.4942, allocations: 340 kB / 0.5661 GB, free: 13.78 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003429/0.4976, allocations: 1.034 MB / 0.5671 GB, free: 12.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002801/0.5005, allocations: 1.964 MB / 0.569 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004468/0.505, allocations: 2.376 MB / 0.5713 GB, free: 8.387 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01378/0.5188, allocations: 7.746 MB / 0.5789 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.249e-05/0.5189, allocations: 4 kB / 0.5789 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.5189, allocations: 0 / 0.5789 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003928/0.5193, allocations: 0 / 0.5789 GB, free: 0.6094 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.01814/0.5374, allocations: 5.046 MB / 0.5838 GB, free: 11.49 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.5375, allocations: 11.97 kB / 0.5839 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01631/0.5538, allocations: 3.196 MB / 0.587 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008991/0.5629, allocations: 2.378 MB / 0.5893 GB, free: 5.844 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003189/0.5632, allocations: 250.6 kB / 0.5895 GB, free: 5.598 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002004/0.5653, allocations: 331.7 kB / 0.5898 GB, free: 5.273 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03083/0.5961, allocations: 12.24 MB / 0.6018 GB, free: 8.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/0.5963, allocations: 35.72 kB / 0.6018 GB, free: 8.465 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00128/0.5976, allocations: 159.7 kB / 0.602 GB, free: 8.309 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005207/0.6029, allocations: 2.844 MB / 0.6048 GB, free: 5.457 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02562/0.6285, allocations: 11.13 MB / 0.6156 GB, free: 10.31 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06803/0.6966, allocations: 40.49 MB / 0.6552 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009718/0.7063, allocations: 4.695 MB / 0.6598 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003801/0.7102, allocations: 2.435 MB / 0.6621 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001295/0.7115, allocations: 1.323 MB / 0.6634 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/0.7116, allocations: 52.56 kB / 0.6635 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 5.601e-06/0.7116, allocations: 0 / 0.6635 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.04693/0.7585, allocations: 18.69 MB / 0.6817 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.551e-05/0.7586, allocations: 77.41 kB / 0.6818 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0058/0.7645, allocations: 3.163 MB / 0.6849 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002453/0.7647, allocations: 57.7 kB / 0.6849 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002522/0.7673, allocations: 3.121 MB / 0.688 GB, free: 14.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001208/0.7685, allocations: 0.9635 MB / 0.6889 GB, free: 13.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002179/0.7707, allocations: 1.195 MB / 0.6901 GB, free: 12.29 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.7708, allocations: 301.1 kB / 0.6904 GB, free: 12 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003842/0.7746, allocations: 2.467 MB / 0.6928 GB, free: 9.523 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006438/0.7811, allocations: 5.727 MB / 0.6984 GB, free: 2.191 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/0.7935, allocations: 8.988 MB / 0.7072 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/0.7936, allocations: 32 kB / 0.7072 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.4421/1.236, allocations: 8.992 MB / 0.716 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001862/1.236, allocations: 53.44 kB / 0.716 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002194/1.236, allocations: 116.4 kB / 0.7161 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003511/1.24, allocations: 1.056 MB / 0.7172 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005583/1.245, allocations: 1.348 MB / 0.7185 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007879/1.253, allocations: 5.537 MB / 0.7239 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004998/1.258, allocations: 319.8 kB / 0.7242 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009087/1.259, allocations: 345.1 kB / 0.7245 GB, free: 155.3 MB / 0.5606 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.004102/1.263, allocations: 2.414 MB / 0.7269 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005671/1.264, allocations: 312.7 kB / 0.7272 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008526/1.272, allocations: 5.367 MB / 0.7324 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.276e-05/1.273, allocations: 49.77 kB / 0.7325 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.273, allocations: 6.094 kB / 0.7325 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/1.273, allocations: 11.44 kB / 0.7325 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01882/1.291, allocations: 13.02 MB / 0.7452 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/1.291, allocations: 12 kB / 0.7452 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/1.293, allocations: 419.3 kB / 0.7456 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002433/1.295, allocations: 0.8845 MB / 0.7465 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001732/1.296, allocations: 67.42 kB / 0.7465 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005152/1.301, allocations: 4.838 MB / 0.7513 GB, free: 140 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/1.301, allocations: 15.94 kB / 0.7513 GB, free: 140 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009553/1.31, allocations: 8.016 MB / 0.7591 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.311, allocations: 358.7 kB / 0.7594 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006218/1.312, allocations: 55.98 kB / 0.7595 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.314, allocations: 153.2 kB / 0.7596 GB, free: 131.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/1.314, allocations: 173.3 kB / 0.7598 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/1.314, allocations: 75.98 kB / 0.7599 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002517/1.317, allocations: 1.956 MB / 0.7618 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.01e-07/1.317, allocations: 0 / 0.7618 GB, free: 129.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004836/1.321, allocations: 1.057 MB / 0.7628 GB, free: 128.2 MB / 0.5606 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.0004836/1.322, allocations: 208.9 kB / 0.763 GB, free: 128 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007618/1.33, allocations: 6.036 MB / 0.7689 GB, free: 122 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.33, allocations: 4.812 kB / 0.7689 GB, free: 122 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002642/1.332, allocations: 2.257 MB / 0.7711 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/1.335, allocations: 460.5 kB / 0.7716 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/1.352, allocations: 11.24 MB / 0.7825 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003456/1.355, allocations: 3.704 MB / 0.7862 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00396/1.359, allocations: 2.153 MB / 0.7883 GB, free: 102 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006884/1.36, allocations: 239.4 kB / 0.7885 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of SimCode: time 6.62e-07/1.36, allocations: 0 / 0.7885 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.05723/1.417, allocations: 34.55 MB / 0.8222 GB, free: 67.42 MB / 0.5606 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