Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001227/0.001227, allocations: 183 kB / 16.63 MB, free: 5.137 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.1 MB / 222.5 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 111.1 kB / 269.9 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3625/0.3625, allocations: 43.49 MB / 360.7 MB, free: 51.25 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 51.92 kB / 429.2 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1264, allocations: 57.77 MB / 487 MB, free: 12.54 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2913/0.4178, allocations: 53.2 MB / 0.5276 GB, free: 31.7 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02658/0.4444, allocations: 11.15 MB / 0.5384 GB, free: 24.73 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0131/0.4576, allocations: 220 kB / 0.5386 GB, free: 24.7 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005304/0.4629, allocations: 2.813 MB / 0.5414 GB, free: 23.4 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005514/0.4685, allocations: 1.776 MB / 0.5431 GB, free: 22.61 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001921/0.4704, allocations: 0.6452 MB / 0.5438 GB, free: 22.34 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007918/0.4784, allocations: 6.165 MB / 0.5498 GB, free: 20.52 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004999/0.4834, allocations: 3.829 MB / 0.5535 GB, free: 19.12 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002253/0.4857, allocations: 1.391 MB / 0.5549 GB, free: 18.56 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003747/0.4894, allocations: 2.366 MB / 0.5572 GB, free: 17.75 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000868/0.4903, allocations: 256.6 kB / 0.5574 GB, free: 17.75 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002815/0.4932, allocations: 1.188 MB / 0.5586 GB, free: 17.49 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002531/0.4957, allocations: 1.969 MB / 0.5605 GB, free: 16.84 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003188/0.4989, allocations: 2.286 MB / 0.5627 GB, free: 15.25 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009635/0.5085, allocations: 7.526 MB / 0.5701 GB, free: 11.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5086, allocations: 0 / 0.5701 GB, free: 11.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5086, allocations: 0 / 0.5701 GB, free: 11.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002651/0.5089, allocations: 0 / 0.5701 GB, free: 11.52 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01187/0.5207, allocations: 4.967 MB / 0.5749 GB, free: 8.039 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.5208, allocations: 10.75 kB / 0.575 GB, free: 8.039 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01633/0.5371, allocations: 2.536 MB / 0.5774 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007152/0.5443, allocations: 2.705 MB / 0.5801 GB, free: 5.066 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.5445, allocations: 250.1 kB / 0.5803 GB, free: 4.949 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001077/0.5456, allocations: 337.5 kB / 0.5806 GB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01564/0.5613, allocations: 10.45 MB / 0.5908 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.5614, allocations: 43.58 kB / 0.5909 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004104/0.5618, allocations: 159.8 kB / 0.591 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003197/0.565, allocations: 2.092 MB / 0.5931 GB, free: 8.082 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01709/0.5821, allocations: 8.736 MB / 0.6016 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05721/0.6394, allocations: 38.64 MB / 0.6393 GB, free: 7.598 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005962/0.6454, allocations: 3.056 MB / 0.6423 GB, free: 4.391 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002341/0.6478, allocations: 1.735 MB / 0.644 GB, free: 2.648 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003916/0.6482, allocations: 336.2 kB / 0.6443 GB, free: 2.266 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/0.6483, allocations: 59.58 kB / 0.6444 GB, free: 2.199 MB / 458.7 MB Notification: Performance of pre-optimization done (n=176): time 4.799e-06/0.6483, allocations: 0 / 0.6444 GB, free: 2.199 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.03427/0.6825, allocations: 14.76 MB / 0.6588 GB, free: 3.301 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.6827, allocations: 209.2 kB / 0.659 GB, free: 3.051 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008809/0.6915, allocations: 3.847 MB / 0.6628 GB, free: 15.21 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005024/0.692, allocations: 53.7 kB / 0.6628 GB, free: 15.15 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002539/0.6946, allocations: 3.19 MB / 0.6659 GB, free: 11.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/0.6957, allocations: 0.7366 MB / 0.6666 GB, free: 11.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002864/0.6986, allocations: 1.257 MB / 0.6679 GB, free: 9.898 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.73e-05/0.6987, allocations: 301.1 kB / 0.6682 GB, free: 9.602 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004067/0.7028, allocations: 2.253 MB / 0.6704 GB, free: 7.344 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006791/0.7096, allocations: 5.954 MB / 0.6762 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/0.7208, allocations: 8.834 MB / 0.6848 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000157/0.721, allocations: 36 kB / 0.6848 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of matching and sorting (n=802) (initialization): time 0.2504/0.9714, allocations: 8.477 MB / 0.6931 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.373e-05/0.9715, allocations: 59.06 kB / 0.6932 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001766/0.9717, allocations: 129.8 kB / 0.6933 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/0.9734, allocations: 0.6855 MB / 0.694 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005124/0.9786, allocations: 1.445 MB / 0.6954 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004539/0.9831, allocations: 4.077 MB / 0.6994 GB, free: 146.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004932/0.9881, allocations: 359 kB / 0.6997 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007958/0.9889, allocations: 380.4 kB / 0.7001 GB, free: 146.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 30 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],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 (764): * Single equations (assignments): 760 * Array equations: 3 * 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 {(1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003607/0.9925, allocations: 2.232 MB / 0.7022 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005841/0.9931, allocations: 340.2 kB / 0.7026 GB, free: 145.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005294/0.9984, allocations: 3.257 MB / 0.7057 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/0.9984, allocations: 27.38 kB / 0.7058 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.9984, allocations: 6.875 kB / 0.7058 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.9985, allocations: 10.39 kB / 0.7058 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01435/1.013, allocations: 8.147 MB / 0.7137 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/1.013, allocations: 0 / 0.7137 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/1.014, allocations: 346.2 kB / 0.7141 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/1.016, allocations: 0.5085 MB / 0.7146 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/1.016, allocations: 32.14 kB / 0.7146 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003768/1.02, allocations: 3.641 MB / 0.7182 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/1.02, allocations: 0 / 0.7182 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03888/1.058, allocations: 22.17 MB / 0.7398 GB, free: 130.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/1.06, allocations: 0.6452 MB / 0.7404 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/1.06, allocations: 32.62 kB / 0.7405 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/1.062, allocations: 119 kB / 0.7406 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003534/1.062, allocations: 131.2 kB / 0.7407 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/1.062, allocations: 54.95 kB / 0.7408 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003468/1.066, allocations: 2.394 MB / 0.7431 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.31e-07/1.066, allocations: 0 / 0.7431 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005216/1.071, allocations: 1.271 MB / 0.7443 GB, free: 128.8 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 (164): * Single equations (assignments): 160 * Array equations: 3 * 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 {(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.0003829/1.071, allocations: 172.9 kB / 0.7445 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007476/1.079, allocations: 5.351 MB / 0.7497 GB, free: 126.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.079, allocations: 0 / 0.7497 GB, free: 126.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002033/1.081, allocations: 1.713 MB / 0.7514 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/1.083, allocations: 410.2 kB / 0.7518 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/1.099, allocations: 13.14 MB / 0.7646 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003128/1.102, allocations: 3.521 MB / 0.7681 GB, free: 110.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004315/1.106, allocations: 1.944 MB / 0.77 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007414/1.107, allocations: 251.4 kB / 0.7702 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/1.107, allocations: 0 / 0.7702 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.05907/1.166, allocations: 39.24 MB / 0.8085 GB, free: 69.2 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches