Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 187.4 kB / 18.09 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.3 MB / 242.1 MB, free: 10 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007446/0.0007443, allocations: 93.2 kB / 293.3 MB, free: 10.59 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2911/0.2911, allocations: 44.14 MB / 388.5 MB, free: 38.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 16 kB / 461.1 MB, free: 1.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2798, allocations: 61.88 MB / 0.5107 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.41, allocations: 110.5 MB / 0.6186 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4103, allocations: 79.95 kB / 0.6187 GB, free: 492 kB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4274/0.8377, allocations: 82.79 MB / 0.6996 GB, free: 97.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.8377, allocations: 0 / 0.6996 GB, free: 97.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000209/0.8379, allocations: 88.91 kB / 0.6996 GB, free: 97.34 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01183/0.8498, allocations: 3.934 MB / 0.7035 GB, free: 95.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.8498, allocations: 9.688 kB / 0.7035 GB, free: 95.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01468/0.8645, allocations: 3.528 MB / 0.7069 GB, free: 95.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008036/0.8726, allocations: 3.332 MB / 0.7102 GB, free: 94.67 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003516/0.873, allocations: 319.5 kB / 0.7105 GB, free: 94.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00188/0.8749, allocations: 415.5 kB / 0.7109 GB, free: 94.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01834/0.8932, allocations: 9.612 MB / 0.7203 GB, free: 91.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003116/0.8936, allocations: 62.14 kB / 0.7203 GB, free: 91.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001252/0.8948, allocations: 212.9 kB / 0.7205 GB, free: 90.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001222/0.8961, allocations: 0.8428 MB / 0.7214 GB, free: 90.81 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.9099, allocations: 7.621 MB / 0.7288 GB, free: 88.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04271/0.9527, allocations: 43.21 MB / 0.771 GB, free: 54.65 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004186/0.9569, allocations: 2.389 MB / 0.7733 GB, free: 53.47 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.9584, allocations: 1.186 MB / 0.7745 GB, free: 53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003022/0.9587, allocations: 335.8 kB / 0.7748 GB, free: 52.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.9587, allocations: 53.66 kB / 0.7749 GB, free: 52.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=122): time 5.711e-06/0.9588, allocations: 3.469 kB / 0.7749 GB, free: 52.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=140): time 0.02245/0.9812, allocations: 10.65 MB / 0.7853 GB, free: 48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.9813, allocations: 197.4 kB / 0.7855 GB, free: 47.78 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004979/0.9863, allocations: 3.596 MB / 0.789 GB, free: 46.47 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.9865, allocations: 41.36 kB / 0.789 GB, free: 46.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.9879, allocations: 2.977 MB / 0.7919 GB, free: 44.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/0.9884, allocations: 0.5526 MB / 0.7925 GB, free: 43.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002991/0.9887, allocations: 105.7 kB / 0.7926 GB, free: 43.67 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002911/0.989, allocations: 0.5271 MB / 0.7931 GB, free: 43.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/0.9914, allocations: 1.691 MB / 0.7947 GB, free: 42.77 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003577/0.995, allocations: 5.115 MB / 0.7997 GB, free: 36.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006094/1.001, allocations: 7.403 MB / 0.8069 GB, free: 28.35 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.545e-05/1.001, allocations: 36 kB / 0.807 GB, free: 28.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=693) (initialization): time 0.009303/1.011, allocations: 6.724 MB / 0.8135 GB, free: 22.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.605e-05/1.011, allocations: 60.09 kB / 0.8136 GB, free: 22.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/1.011, allocations: 123.9 kB / 0.8137 GB, free: 22.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000687/1.011, allocations: 362.3 kB / 0.8141 GB, free: 21.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003152/1.015, allocations: 1.233 MB / 0.8153 GB, free: 20.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002633/1.017, allocations: 2.992 MB / 0.8182 GB, free: 18.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003141/1.02, allocations: 297.3 kB / 0.8185 GB, free: 17.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004589/1.021, allocations: 337.9 kB / 0.8188 GB, free: 17.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (655): * Single equations (assignments): 651 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002829/1.024, allocations: 2.039 MB / 0.8208 GB, free: 15.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004879/1.024, allocations: 304 kB / 0.8211 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002852/1.027, allocations: 1.82 MB / 0.8229 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.026e-05/1.027, allocations: 16 kB / 0.8229 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/1.027, allocations: 7.562 kB / 0.8229 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/1.027, allocations: 7.609 kB / 0.8229 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009254/1.036, allocations: 5.786 MB / 0.8285 GB, free: 9.035 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/1.036, allocations: 3.938 kB / 0.8285 GB, free: 9.035 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009271/1.037, allocations: 227.7 kB / 0.8288 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004503/1.038, allocations: 184.6 kB / 0.8289 GB, free: 8.629 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.909e-05/1.038, allocations: 23.98 kB / 0.829 GB, free: 8.605 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/1.04, allocations: 2.56 MB / 0.8315 GB, free: 5.918 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.04, allocations: 3.938 kB / 0.8315 GB, free: 5.914 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/1.044, allocations: 3.851 MB / 0.8352 GB, free: 2.035 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007118/1.045, allocations: 353 kB / 0.8356 GB, free: 1.668 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/1.046, allocations: 23.98 kB / 0.8356 GB, free: 1.645 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/1.047, allocations: 80 kB / 0.8357 GB, free: 1.566 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002413/1.047, allocations: 104.3 kB / 0.8358 GB, free: 1.469 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.187e-05/1.047, allocations: 39.98 kB / 0.8358 GB, free: 1.43 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003276/1.05, allocations: 2.235 MB / 0.838 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.31e-07/1.05, allocations: 0 / 0.838 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004107/1.055, allocations: 0.8516 MB / 0.8388 GB, free: 14.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003763/1.055, allocations: 155.5 kB / 0.839 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006505/1.061, allocations: 4.087 MB / 0.843 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/1.061, allocations: 4 kB / 0.843 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001696/1.063, allocations: 1.15 MB / 0.8441 GB, free: 8.957 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/1.066, allocations: 392.6 kB / 0.8445 GB, free: 8.582 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01804/1.084, allocations: 9.712 MB / 0.8539 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00598/1.09, allocations: 3.16 MB / 0.857 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00555/1.095, allocations: 1.737 MB / 0.8587 GB, free: 9.938 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008926/1.096, allocations: 211.4 kB / 0.8589 GB, free: 9.73 MB / 0.5105 GB Notification: Performance of SimCode: time 6.91e-07/1.096, allocations: 4 kB / 0.8589 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of Templates: time 0.2772/1.374, allocations: 27.08 MB / 0.8854 GB, free: 129.1 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches