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.001309/0.001315, allocations: 109.3 kB / 18.39 MB, free: 4.629 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.001385/0.001385, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.438/1.438, allocations: 222.9 MB / 243 MB, free: 15.16 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.2208/0.2208, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 78.59 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1173, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01058/0.1279, allocations: 9.774 MB / 480.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007039/0.135, allocations: 3.839 MB / 484.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1361, allocations: 55.88 kB / 484.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004468/0.1406, allocations: 2.788 MB / 487.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003964/0.1446, allocations: 1.704 MB / 488.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001525/0.1462, allocations: 0.7096 MB / 489.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005404/0.1516, allocations: 3.976 MB / 493.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003918/0.1555, allocations: 3.737 MB / 497.3 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002241/0.1578, allocations: 1.448 MB / 498.7 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002482/0.1603, allocations: 1.963 MB / 0.489 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000613/0.1609, allocations: 328 kB / 0.4893 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0021/0.163, allocations: 1.209 MB / 0.4905 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.1648, allocations: 1.839 MB / 0.4923 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002365/0.1672, allocations: 2.117 MB / 0.4943 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009537/0.1768, allocations: 7.023 MB / 0.5012 GB, free: 2.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1768, allocations: 3.938 kB / 0.5012 GB, free: 2.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1768, allocations: 0 / 0.5012 GB, free: 2.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001514/0.177, allocations: 4 kB / 0.5012 GB, free: 2.918 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.2464/0.4234, allocations: 4.508 MB / 0.5056 GB, free: 46.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.886e-05/0.4235, allocations: 9.781 kB / 0.5056 GB, free: 46.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.4395, allocations: 2.461 MB / 0.508 GB, free: 45.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007757/0.4473, allocations: 2.535 MB / 0.5105 GB, free: 44.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.4476, allocations: 226.7 kB / 0.5107 GB, free: 44.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000996/0.4486, allocations: 307.2 kB / 0.511 GB, free: 44.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/0.4641, allocations: 9.3 MB / 0.5201 GB, free: 39.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001425/0.4643, allocations: 36.94 kB / 0.5201 GB, free: 39.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000382/0.4647, allocations: 144.4 kB / 0.5202 GB, free: 39.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002703/0.4674, allocations: 1.841 MB / 0.522 GB, free: 39.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/0.4796, allocations: 7.688 MB / 0.5295 GB, free: 32.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03931/0.5189, allocations: 34.66 MB / 0.5634 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004844/0.5238, allocations: 2.444 MB / 0.5658 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/0.5258, allocations: 1.278 MB / 0.567 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004094/0.5262, allocations: 335.6 kB / 0.5673 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.5263, allocations: 47.12 kB / 0.5674 GB, free: 8.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 3.356e-06/0.5263, allocations: 0 / 0.5674 GB, free: 8.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02695/0.5532, allocations: 11.66 MB / 0.5788 GB, free: 12.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.5534, allocations: 196.5 kB / 0.579 GB, free: 12.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005098/0.5585, allocations: 3.626 MB / 0.5825 GB, free: 8.926 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000322/0.5588, allocations: 45.7 kB / 0.5825 GB, free: 8.875 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002402/0.5613, allocations: 2.945 MB / 0.5854 GB, free: 5.891 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007442/0.562, allocations: 0.5479 MB / 0.586 GB, free: 5.336 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001476/0.5635, allocations: 1.126 MB / 0.5871 GB, free: 4.199 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.5637, allocations: 305.1 kB / 0.5873 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003105/0.5668, allocations: 1.818 MB / 0.5891 GB, free: 2.074 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0055/0.5723, allocations: 5.249 MB / 0.5943 GB, free: 11.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008995/0.5813, allocations: 7.619 MB / 0.6017 GB, free: 1.777 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/0.5815, allocations: 32 kB / 0.6017 GB, free: 1.746 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01395/0.5955, allocations: 7.301 MB / 0.6089 GB, free: 10.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.287e-05/0.5956, allocations: 56 kB / 0.6089 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001507/0.5957, allocations: 124 kB / 0.609 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/0.5975, allocations: 0.6884 MB / 0.6097 GB, free: 9.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004256/0.6017, allocations: 1.252 MB / 0.6109 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005462/0.6072, allocations: 4.336 MB / 0.6152 GB, free: 3.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003941/0.6112, allocations: 312 kB / 0.6154 GB, free: 3.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005281/0.6117, allocations: 336 kB / 0.6158 GB, free: 3.211 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.002948/0.6147, allocations: 2.044 MB / 0.6178 GB, free: 1.156 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005765/0.6152, allocations: 308 kB / 0.6181 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003949/0.6192, allocations: 2.257 MB / 0.6203 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.6192, allocations: 16 kB / 0.6203 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.6193, allocations: 7.938 kB / 0.6203 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.6193, allocations: 7.984 kB / 0.6203 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.6307, allocations: 6.271 MB / 0.6264 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/0.6308, allocations: 7.938 kB / 0.6264 GB, free: 8.199 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.6318, allocations: 215.6 kB / 0.6266 GB, free: 7.988 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001451/0.6333, allocations: 0.5041 MB / 0.6271 GB, free: 7.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.6334, allocations: 27.98 kB / 0.6272 GB, free: 7.453 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/0.6382, allocations: 3.918 MB / 0.631 GB, free: 3.398 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6382, allocations: 3.984 kB / 0.631 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006818/0.645, allocations: 4.395 MB / 0.6353 GB, free: 14.97 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.6462, allocations: 361.1 kB / 0.6356 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003166/0.6465, allocations: 20 kB / 0.6356 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6476, allocations: 79.89 kB / 0.6357 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.6479, allocations: 108.4 kB / 0.6358 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.648, allocations: 35.98 kB / 0.6358 GB, free: 14.36 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00329/0.6513, allocations: 2.254 MB / 0.6381 GB, free: 12.11 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6513, allocations: 4 kB / 0.6381 GB, free: 12.11 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004221/0.6556, allocations: 0.8853 MB / 0.6389 GB, free: 11.23 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.0004388/0.656, allocations: 147.5 kB / 0.6391 GB, free: 11.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007103/0.6631, allocations: 4.336 MB / 0.6433 GB, free: 6.762 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6632, allocations: 0 / 0.6433 GB, free: 6.762 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001902/0.6651, allocations: 1.237 MB / 0.6445 GB, free: 5.512 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/0.6677, allocations: 419.6 kB / 0.6449 GB, free: 5.109 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.6825, allocations: 8.238 MB / 0.6529 GB, free: 12.83 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003217/0.6858, allocations: 3.171 MB / 0.656 GB, free: 9.621 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00367/0.6895, allocations: 1.718 MB / 0.6577 GB, free: 7.898 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005367/0.69, allocations: 211.4 kB / 0.6579 GB, free: 7.691 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/0.69, allocations: 0 / 0.6579 GB, free: 7.691 MB / 494.1 MB Notification: Performance of Templates: time 0.05367/0.7437, allocations: 26.05 MB / 0.6834 GB, free: 13.73 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 -s cvode -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