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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 110.1 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 242.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2048/0.2048, allocations: 44.18 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 57.09 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1148, allocations: 60.82 MB / 469.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01106/0.1259, allocations: 9.794 MB / 479.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008219/0.1341, allocations: 3.839 MB / 483.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001841/0.136, allocations: 59.81 kB / 483.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005501/0.1416, allocations: 2.78 MB / 486.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004832/0.1465, allocations: 1.708 MB / 488.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001974/0.1485, allocations: 0.7018 MB / 488.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006079/0.1546, allocations: 3.972 MB / 492.8 MB, free: 7.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005646/0.1603, allocations: 3.745 MB / 496.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002973/0.1633, allocations: 1.445 MB / 498 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003303/0.1666, allocations: 1.963 MB / 499.9 MB, free: 240 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.1679, allocations: 324 kB / 0.4885 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002924/0.1708, allocations: 1.213 MB / 0.4897 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00246/0.1733, allocations: 1.843 MB / 0.4915 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003702/0.1771, allocations: 2.117 MB / 0.4936 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008756/0.1858, allocations: 6.788 MB / 0.5002 GB, free: 3.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1859, allocations: 0 / 0.5002 GB, free: 3.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1859, allocations: 4 kB / 0.5002 GB, free: 3.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002708/0.1862, allocations: 0 / 0.5002 GB, free: 3.914 MB / 382.1 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.236/0.4222, allocations: 4.515 MB / 0.5046 GB, free: 46.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.4222, allocations: 8.688 kB / 0.5046 GB, free: 46.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01756/0.4398, allocations: 2.467 MB / 0.507 GB, free: 45.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006963/0.4468, allocations: 2.496 MB / 0.5095 GB, free: 44.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/0.4471, allocations: 227.7 kB / 0.5097 GB, free: 44.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001361/0.4485, allocations: 304.6 kB / 0.51 GB, free: 44.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01802/0.4665, allocations: 9.297 MB / 0.5191 GB, free: 40.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001407/0.4667, allocations: 40.81 kB / 0.5191 GB, free: 40.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004993/0.4672, allocations: 141.3 kB / 0.5192 GB, free: 40.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/0.4702, allocations: 1.845 MB / 0.521 GB, free: 39.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01292/0.4832, allocations: 7.682 MB / 0.5285 GB, free: 33.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03468/0.5179, allocations: 34.85 MB / 0.5626 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005032/0.523, allocations: 2.44 MB / 0.5649 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001844/0.5248, allocations: 1.282 MB / 0.5662 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003986/0.5253, allocations: 339.7 kB / 0.5665 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.5253, allocations: 43.12 kB / 0.5666 GB, free: 9.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 4.078e-06/0.5253, allocations: 0 / 0.5666 GB, free: 9.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02868/0.554, allocations: 11.66 MB / 0.5779 GB, free: 13.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.5542, allocations: 196.6 kB / 0.5781 GB, free: 13.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005104/0.5593, allocations: 3.63 MB / 0.5817 GB, free: 9.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003261/0.5596, allocations: 45.7 kB / 0.5817 GB, free: 9.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.5616, allocations: 2.941 MB / 0.5846 GB, free: 6.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007107/0.5623, allocations: 0.5556 MB / 0.5851 GB, free: 5.938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001465/0.5638, allocations: 1.114 MB / 0.5862 GB, free: 4.812 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.946e-05/0.5639, allocations: 309 kB / 0.5865 GB, free: 4.508 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.5667, allocations: 1.822 MB / 0.5883 GB, free: 2.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004838/0.5715, allocations: 5.249 MB / 0.5934 GB, free: 11.7 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008847/0.5804, allocations: 7.621 MB / 0.6009 GB, free: 2.383 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.832e-05/0.5805, allocations: 36 kB / 0.6009 GB, free: 2.348 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.0139/0.5944, allocations: 7.295 MB / 0.608 GB, free: 11.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.609e-05/0.5946, allocations: 58.81 kB / 0.6081 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/0.5947, allocations: 120 kB / 0.6082 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/0.5964, allocations: 0.6845 MB / 0.6089 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004024/0.6005, allocations: 1.259 MB / 0.6101 GB, free: 8.918 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005838/0.6063, allocations: 4.342 MB / 0.6143 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004702/0.6111, allocations: 307.7 kB / 0.6146 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007738/0.6119, allocations: 340 kB / 0.6149 GB, free: 3.805 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,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 (672): * Single equations (assignments): 668 * 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 {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004705/0.6166, allocations: 2.034 MB / 0.6169 GB, free: 1.758 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009743/0.6176, allocations: 304.1 kB / 0.6172 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004789/0.6224, allocations: 2.257 MB / 0.6194 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-05/0.6225, allocations: 16 kB / 0.6194 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.6225, allocations: 7.938 kB / 0.6195 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.6225, allocations: 3.984 kB / 0.6195 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/0.6355, allocations: 6.297 MB / 0.6256 GB, free: 8.793 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/0.6356, allocations: 7.938 kB / 0.6256 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.6367, allocations: 219.6 kB / 0.6258 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.6382, allocations: 0.5002 MB / 0.6263 GB, free: 8.066 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.6384, allocations: 31.98 kB / 0.6263 GB, free: 8.035 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005343/0.6437, allocations: 3.921 MB / 0.6302 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6438, allocations: 0 / 0.6302 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007521/0.6513, allocations: 4.397 MB / 0.6345 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.6523, allocations: 357 kB / 0.6348 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007073/0.653, allocations: 20 kB / 0.6348 GB, free: 15.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.6546, allocations: 91.89 kB / 0.6349 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003106/0.6549, allocations: 100.5 kB / 0.635 GB, free: 14.97 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.655, allocations: 43.97 kB / 0.635 GB, free: 14.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004439/0.6595, allocations: 2.246 MB / 0.6372 GB, free: 12.69 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6595, allocations: 0 / 0.6372 GB, free: 12.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005284/0.6648, allocations: 0.888 MB / 0.6381 GB, free: 11.81 MB / 478.1 MB 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 (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.000536/0.6654, allocations: 153.6 kB / 0.6383 GB, free: 11.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009448/0.6748, allocations: 4.838 MB / 0.643 GB, free: 6.848 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.6749, allocations: 112 / 0.643 GB, free: 6.848 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.6771, allocations: 1.242 MB / 0.6442 GB, free: 5.594 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003395/0.6805, allocations: 408.4 kB / 0.6446 GB, free: 5.203 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01795/0.6985, allocations: 8.764 MB / 0.6531 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005123/0.7037, allocations: 3.148 MB / 0.6562 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.705, allocations: 263.4 kB / 0.6565 GB, free: 8.949 MB / 494.1 MB Notification: Performance of SimCode: time 1.473e-06/0.705, allocations: 0 / 0.6565 GB, free: 8.949 MB / 494.1 MB Notification: Performance of Templates: time 0.3337/1.039, allocations: 69.66 MB / 0.7245 GB, free: 159.8 MB / 0.5137 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches