Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.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.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002029/0.002029, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002457/0.002457, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.769/2.769, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4209/0.4209, allocations: 46.11 MB / 344.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003201/0.003201, allocations: 76.12 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2036, allocations: 62.44 MB / 480.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.5796/0.7833, allocations: 108.1 MB / 0.5744 GB, free: 6.684 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0917/0.8751, allocations: 20.28 MB / 0.5942 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03782/0.913, allocations: 474.9 kB / 0.5947 GB, free: 1.879 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01944/0.9326, allocations: 6.071 MB / 0.6006 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02642/0.9591, allocations: 2.693 MB / 0.6033 GB, free: 9.094 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006777/0.9659, allocations: 1.506 MB / 0.6047 GB, free: 7.586 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.04152/1.007, allocations: 10.61 MB / 0.6151 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02455/1.032, allocations: 8.408 MB / 0.6233 GB, free: 4.469 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01842/1.051, allocations: 3.182 MB / 0.6264 GB, free: 1.277 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0167/1.067, allocations: 4.686 MB / 0.631 GB, free: 12.58 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004125/1.072, allocations: 0.6797 MB / 0.6316 GB, free: 11.9 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007876/1.08, allocations: 1.709 MB / 0.6333 GB, free: 10.19 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00933/1.089, allocations: 3.87 MB / 0.6371 GB, free: 6.309 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01286/1.102, allocations: 4.238 MB / 0.6412 GB, free: 2.047 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02194/1.124, allocations: 10.42 MB / 0.6514 GB, free: 7.602 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.385e-05/1.124, allocations: 4 kB / 0.6514 GB, free: 7.598 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.656e-06/1.124, allocations: 0 / 0.6514 GB, free: 7.598 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005497/1.125, allocations: 0 / 0.6514 GB, free: 7.598 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2491 * Number of variables: 2491 Notification: Performance of Generate backend data structure: time 0.04225/1.167, allocations: 9.038 MB / 0.6602 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.042e-05/1.167, allocations: 8.031 kB / 0.6602 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03393/1.201, allocations: 3.493 MB / 0.6637 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02608/1.227, allocations: 5.905 MB / 0.6694 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007703/1.228, allocations: 440.1 kB / 0.6698 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00403/1.232, allocations: 0.601 MB / 0.6704 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0671/1.299, allocations: 17.11 MB / 0.6871 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007695/1.3, allocations: 87.2 kB / 0.6872 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003943/1.304, allocations: 275.8 kB / 0.6875 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0109/1.315, allocations: 2.901 MB / 0.6903 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06023/1.375, allocations: 14.33 MB / 0.7043 GB, free: 160 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.105/2.481, allocations: 64.73 MB / 0.7675 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02937/2.51, allocations: 6.616 MB / 0.774 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007739/2.518, allocations: 3.887 MB / 0.7778 GB, free: 124.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/2.519, allocations: 0.6457 MB / 0.7784 GB, free: 123.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.514e-05/2.519, allocations: 68.2 kB / 0.7785 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=231): time 9.137e-06/2.519, allocations: 0 / 0.7785 GB, free: 123.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=255): time 0.1879/2.707, allocations: 31.3 MB / 0.809 GB, free: 92.18 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/2.707, allocations: 283 kB / 0.8093 GB, free: 91.84 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02192/2.729, allocations: 7.315 MB / 0.8165 GB, free: 84.54 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001248/2.73, allocations: 61.7 kB / 0.8165 GB, free: 84.48 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005762/2.736, allocations: 5.086 MB / 0.8215 GB, free: 79.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002216/2.738, allocations: 0.9993 MB / 0.8225 GB, free: 78.41 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005564/2.744, allocations: 1.849 MB / 0.8243 GB, free: 76.54 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.333e-05/2.744, allocations: 301.1 kB / 0.8246 GB, free: 76.25 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008963/2.753, allocations: 3.422 MB / 0.8279 GB, free: 72.82 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01771/2.771, allocations: 8.619 MB / 0.8363 GB, free: 61.63 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02832/2.799, allocations: 12.85 MB / 0.8489 GB, free: 46.24 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002759/2.8, allocations: 52 kB / 0.8489 GB, free: 46.19 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.06884/2.869, allocations: 13.84 MB / 0.8624 GB, free: 32.32 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002168/2.869, allocations: 84 kB / 0.8625 GB, free: 32.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003151/2.869, allocations: 180 kB / 0.8627 GB, free: 32.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/2.883, allocations: 2.321 MB / 0.8649 GB, free: 29.73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01959/2.903, allocations: 2.024 MB / 0.8669 GB, free: 27.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03026/2.933, allocations: 16.72 MB / 0.8833 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0151/2.949, allocations: 0.4955 MB / 0.8837 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002838/2.951, allocations: 0.5223 MB / 0.8842 GB, free: 9.43 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 827 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1086): * Single equations (assignments): 1079 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01118/2.963, allocations: 3.406 MB / 0.8876 GB, free: 6.008 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002353/2.965, allocations: 0.6055 MB / 0.8882 GB, free: 5.395 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0206/2.986, allocations: 6.453 MB / 0.8945 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001258/2.986, allocations: 28 kB / 0.8945 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.564e-05/2.986, allocations: 11.94 kB / 0.8945 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.665e-05/2.986, allocations: 11.95 kB / 0.8945 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06912/3.055, allocations: 14.35 MB / 0.9085 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.674e-05/3.055, allocations: 4.281 kB / 0.9085 GB, free: 456 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007795/3.063, allocations: 399.4 kB / 0.9089 GB, free: 56 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.7346/3.798, allocations: 2.002 MB / 0.9109 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008088/3.799, allocations: 44.06 kB / 0.9109 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03026/3.829, allocations: 15.64 MB / 0.9262 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/3.829, allocations: 2.406 kB / 0.9262 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02813/3.857, allocations: 10.14 MB / 0.9361 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003067/3.86, allocations: 0.6744 MB / 0.9368 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00295/3.863, allocations: 35.91 kB / 0.9368 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005955/3.869, allocations: 186.6 kB / 0.937 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001436/3.871, allocations: 145.2 kB / 0.9371 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005042/3.871, allocations: 71.86 kB / 0.9372 GB, free: 165.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01271/3.884, allocations: 4.662 MB / 0.9417 GB, free: 164.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.172e-06/3.884, allocations: 7.625 kB / 0.9417 GB, free: 164.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01544/3.9, allocations: 1.733 MB / 0.9434 GB, free: 163.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (195): * Single equations (assignments): 188 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/3.901, allocations: 171.1 kB / 0.9436 GB, free: 163.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02772/3.929, allocations: 9.725 MB / 0.9531 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/3.929, allocations: 6.406 kB / 0.9531 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01051/3.939, allocations: 2.944 MB / 0.956 GB, free: 157.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02065/3.96, allocations: 0.903 MB / 0.9568 GB, free: 156.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07195/4.032, allocations: 20.23 MB / 0.9766 GB, free: 138.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02231/4.054, allocations: 5.192 MB / 0.9817 GB, free: 133.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00281/4.057, allocations: 459.3 kB / 0.9821 GB, free: 132.9 MB / 0.545 GB Notification: Performance of SimCode: time 2.094e-06/4.057, allocations: 0 / 0.9821 GB, free: 132.9 MB / 0.545 GB Notification: Performance of Templates: time 0.9257/4.983, allocations: 224 MB / 1.201 GB, free: 124.2 MB / 0.5607 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches