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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 107.8 kB / 16.41 MB, free: 6.484 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.001445/0.001446, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.247/0.247, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 68.47 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1371, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01337/0.1505, allocations: 11.23 MB / 0.4989 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009284/0.1599, allocations: 4.057 MB / 0.5028 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.1621, allocations: 63.81 kB / 0.5029 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005812/0.168, allocations: 2.827 MB / 0.5056 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005979/0.174, allocations: 1.899 MB / 0.5075 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002377/0.1764, allocations: 0.7096 MB / 0.5082 GB, free: 6.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007021/0.1835, allocations: 4.171 MB / 0.5123 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007754/0.1913, allocations: 3.886 MB / 0.5161 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003465/0.1948, allocations: 1.6 MB / 0.5176 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003821/0.1986, allocations: 2.239 MB / 0.5198 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.2001, allocations: 376 kB / 0.5202 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003029/0.2031, allocations: 1.248 MB / 0.5214 GB, free: 9.332 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002837/0.206, allocations: 2.057 MB / 0.5234 GB, free: 7.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00396/0.2099, allocations: 2.389 MB / 0.5257 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2758/0.4857, allocations: 7.881 MB / 0.5334 GB, free: 15.42 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.165e-05/0.4858, allocations: 1.281 kB / 0.5334 GB, free: 15.42 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4858, allocations: 0 / 0.5334 GB, free: 15.42 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002897/0.4861, allocations: 3.594 kB / 0.5334 GB, free: 15.42 MB / 414.1 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.01702/0.5031, allocations: 4.969 MB / 0.5383 GB, free: 13.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.5032, allocations: 13.36 kB / 0.5383 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01872/0.5219, allocations: 2.535 MB / 0.5408 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007889/0.5298, allocations: 2.728 MB / 0.5434 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003616/0.5302, allocations: 253.1 kB / 0.5437 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001795/0.5321, allocations: 341.5 kB / 0.544 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0194/0.5515, allocations: 10.44 MB / 0.5542 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001778/0.5517, allocations: 49.3 kB / 0.5542 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007089/0.5524, allocations: 158.5 kB / 0.5544 GB, free: 9.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00394/0.5563, allocations: 2.096 MB / 0.5564 GB, free: 9.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01827/0.5746, allocations: 8.742 MB / 0.565 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0553/0.63, allocations: 38.41 MB / 0.6025 GB, free: 1.859 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006397/0.6364, allocations: 3.062 MB / 0.6055 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002804/0.6392, allocations: 1.749 MB / 0.6072 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004896/0.6398, allocations: 333.3 kB / 0.6075 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.6398, allocations: 54.94 kB / 0.6076 GB, free: 12.49 MB / 462.1 MB Notification: Performance of pre-optimization done (n=176): time 4.699e-06/0.6398, allocations: 0.5625 kB / 0.6076 GB, free: 12.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=194): time 0.03549/0.6753, allocations: 14.77 MB / 0.622 GB, free: 13.62 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.6755, allocations: 202.1 kB / 0.6222 GB, free: 13.38 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005215/0.6807, allocations: 3.843 MB / 0.6259 GB, free: 9.555 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003395/0.6811, allocations: 58.58 kB / 0.626 GB, free: 9.496 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002407/0.6835, allocations: 3.187 MB / 0.6291 GB, free: 6.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009963/0.6845, allocations: 0.7398 MB / 0.6298 GB, free: 5.586 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00185/0.6863, allocations: 1.242 MB / 0.631 GB, free: 4.332 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.6864, allocations: 305.1 kB / 0.6313 GB, free: 4.031 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003909/0.6904, allocations: 2.262 MB / 0.6335 GB, free: 1.766 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008001/0.6984, allocations: 5.95 MB / 0.6393 GB, free: 10.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/0.7108, allocations: 8.831 MB / 0.648 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/0.711, allocations: 40 kB / 0.648 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01622/0.7272, allocations: 8.475 MB / 0.6563 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.7274, allocations: 64.72 kB / 0.6563 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002092/0.7276, allocations: 132 kB / 0.6565 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001824/0.7294, allocations: 0.6844 MB / 0.6571 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005004/0.7344, allocations: 1.439 MB / 0.6585 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005513/0.74, allocations: 4.379 MB / 0.6628 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004806/0.7448, allocations: 363.6 kB / 0.6632 GB, free: 484 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/0.7459, allocations: 374.4 kB / 0.6635 GB, free: 112 kB / 0.4981 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.004431/0.7503, allocations: 2.236 MB / 0.6657 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009909/0.7513, allocations: 339.5 kB / 0.666 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006993/0.7583, allocations: 3.256 MB / 0.6692 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-05/0.7584, allocations: 23.94 kB / 0.6692 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.7584, allocations: 4 kB / 0.6692 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/0.7585, allocations: 7.969 kB / 0.6692 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02108/0.7796, allocations: 8.126 MB / 0.6772 GB, free: 2.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/0.7796, allocations: 4 kB / 0.6772 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.7813, allocations: 340.4 kB / 0.6775 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.7827, allocations: 0.5052 MB / 0.678 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001493/0.7829, allocations: 39.41 kB / 0.678 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004766/0.7876, allocations: 3.92 MB / 0.6819 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.7877, allocations: 3.938 kB / 0.6819 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00929/0.797, allocations: 5.937 MB / 0.6877 GB, free: 7.176 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/0.7989, allocations: 0.645 MB / 0.6883 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004395/0.7993, allocations: 24 kB / 0.6883 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.8008, allocations: 123.8 kB / 0.6884 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.8012, allocations: 129.2 kB / 0.6886 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.8013, allocations: 55.97 kB / 0.6886 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003447/0.8048, allocations: 2.392 MB / 0.6909 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8048, allocations: 0 / 0.6909 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005092/0.8099, allocations: 1.031 MB / 0.6919 GB, free: 2.781 MB / 0.5294 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.0004518/0.8104, allocations: 160.8 kB / 0.6921 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008342/0.8187, allocations: 5.375 MB / 0.6974 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8187, allocations: 0 / 0.6974 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00262/0.8214, allocations: 1.727 MB / 0.699 GB, free: 11.53 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002434/0.8238, allocations: 425.3 kB / 0.6994 GB, free: 11.12 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/0.8439, allocations: 9.541 MB / 0.7088 GB, free: 1.551 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004007/0.8479, allocations: 3.459 MB / 0.7121 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004591/0.8525, allocations: 1.94 MB / 0.714 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008018/0.8533, allocations: 255.4 kB / 0.7143 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of SimCode: time 7.92e-07/0.8534, allocations: 0 / 0.7143 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of Templates: time 0.06851/0.9219, allocations: 33.57 MB / 0.7471 GB, free: 10.44 MB / 0.5919 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches