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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 105.9 kB / 16.27 MB, free: 6.41 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.001622/0.001622, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.584/1.584, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.2159/0.2159, allocations: 43.53 MB / 313.9 MB, free: 0.5195 MB / 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.001552/0.001553, allocations: 76.62 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1198, allocations: 57.8 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01048/0.1303, allocations: 11.22 MB / 451.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009781/0.1401, allocations: 4.054 MB / 455.9 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.1423, allocations: 59.88 kB / 456 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005155/0.1475, allocations: 2.831 MB / 458.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005361/0.1529, allocations: 1.883 MB / 460.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001914/0.1548, allocations: 0.7135 MB / 461.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006669/0.1615, allocations: 4.175 MB / 465.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004929/0.1664, allocations: 3.902 MB / 469.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002546/0.169, allocations: 1.589 MB / 471.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.1716, allocations: 2.239 MB / 473.3 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006613/0.1723, allocations: 376 kB / 473.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00212/0.1744, allocations: 1.237 MB / 474.9 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001681/0.1761, allocations: 2.049 MB / 476.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002216/0.1783, allocations: 2.455 MB / 479.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007492/0.1858, allocations: 7.793 MB / 487.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1858, allocations: 3.984 kB / 487.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1859, allocations: 0 / 487.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.186, allocations: 0 / 487.2 MB, free: 8.012 MB / 366.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.01127/0.1973, allocations: 5.105 MB / 492.3 MB, free: 2.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1974, allocations: 15.89 kB / 492.3 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001041/0.1984, allocations: 0.7776 MB / 493.1 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0883/0.2867, allocations: 7.138 MB / 0.4885 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007496/0.2943, allocations: 3.093 MB / 0.4915 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002913/0.2946, allocations: 258.3 kB / 0.4918 GB, free: 7.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001726/0.2963, allocations: 339.7 kB / 0.4921 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02049/0.3168, allocations: 10.37 MB / 0.5022 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001615/0.317, allocations: 47.59 kB / 0.5023 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008921/0.3179, allocations: 155.8 kB / 0.5024 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003514/0.3215, allocations: 2.092 MB / 0.5045 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01596/0.3374, allocations: 8.611 MB / 0.5129 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2724/0.6099, allocations: 38.42 MB / 0.5504 GB, free: 59.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006314/0.6163, allocations: 2.992 MB / 0.5533 GB, free: 59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002601/0.6189, allocations: 1.678 MB / 0.555 GB, free: 58.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004705/0.6194, allocations: 340.4 kB / 0.5553 GB, free: 58.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.713e-05/0.6195, allocations: 62.38 kB / 0.5553 GB, free: 58.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=176): time 6.382e-06/0.6195, allocations: 2.516 kB / 0.5553 GB, free: 58.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=194): time 0.03594/0.6555, allocations: 13.93 MB / 0.5689 GB, free: 52.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6556, allocations: 206.4 kB / 0.5691 GB, free: 52.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007905/0.6636, allocations: 3.851 MB / 0.5729 GB, free: 50.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002916/0.6639, allocations: 53.39 kB / 0.573 GB, free: 50.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/0.6659, allocations: 3.206 MB / 0.5761 GB, free: 47.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008882/0.6668, allocations: 0.7448 MB / 0.5768 GB, free: 46.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002453/0.6693, allocations: 1.207 MB / 0.578 GB, free: 46.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.6694, allocations: 308.6 kB / 0.5783 GB, free: 45.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003198/0.6726, allocations: 2.15 MB / 0.5804 GB, free: 43.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004498/0.6771, allocations: 5.831 MB / 0.5861 GB, free: 36.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008019/0.6851, allocations: 8.636 MB / 0.5945 GB, free: 25.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/0.6853, allocations: 36 kB / 0.5946 GB, free: 25.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01301/0.6983, allocations: 7.991 MB / 0.6024 GB, free: 17.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.6985, allocations: 60 kB / 0.6024 GB, free: 17.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/0.6987, allocations: 128 kB / 0.6025 GB, free: 17.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.6997, allocations: 447.5 kB / 0.603 GB, free: 17.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/0.704, allocations: 1.423 MB / 0.6043 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003645/0.7077, allocations: 3.62 MB / 0.6079 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004773/0.7124, allocations: 343.6 kB / 0.6082 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008621/0.7133, allocations: 376 kB / 0.6086 GB, free: 11.37 MB / 414.1 MB 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 (745): * Single equations (assignments): 741 * 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.00376/0.7171, allocations: 2.236 MB / 0.6108 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009831/0.7181, allocations: 339.6 kB / 0.6111 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005227/0.7233, allocations: 2.89 MB / 0.6139 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/0.7234, allocations: 23.59 kB / 0.6139 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.7234, allocations: 4 kB / 0.6139 GB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.7234, allocations: 11.91 kB / 0.6139 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01524/0.7387, allocations: 7.786 MB / 0.6215 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.7387, allocations: 0 / 0.6215 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/0.7405, allocations: 347.4 kB / 0.6219 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007878/0.7413, allocations: 256.6 kB / 0.6221 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000206/0.7415, allocations: 32.36 kB / 0.6221 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003864/0.7454, allocations: 3.18 MB / 0.6253 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.7454, allocations: 6.766 kB / 0.6253 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00881/0.7542, allocations: 5.473 MB / 0.6306 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/0.7563, allocations: 0.6293 MB / 0.6312 GB, free: 3.957 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007688/0.7571, allocations: 35.69 kB / 0.6313 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001967/0.7591, allocations: 115.9 kB / 0.6314 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003865/0.7595, allocations: 133.2 kB / 0.6315 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.7597, allocations: 51.98 kB / 0.6315 GB, free: 3.633 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004515/0.7642, allocations: 2.405 MB / 0.6339 GB, free: 1.246 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7642, allocations: 0 / 0.6339 GB, free: 1.246 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005128/0.7694, allocations: 0.9947 MB / 0.6349 GB, free: 260 kB / 430.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 (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.009743/0.7791, allocations: 6.121 MB / 0.6408 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01161/0.7908, allocations: 6.356 MB / 0.647 GB, free: 3.793 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.7908, allocations: 4 kB / 0.647 GB, free: 3.789 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003053/0.7939, allocations: 1.648 MB / 0.6487 GB, free: 2.129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003634/0.7975, allocations: 438.5 kB / 0.6491 GB, free: 1.711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08156/0.8791, allocations: 49.94 MB / 0.6978 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006202/0.8854, allocations: 3.459 MB / 0.7012 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00549/0.8909, allocations: 1.948 MB / 0.7031 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003419/0.8943, allocations: 1.987 MB / 0.7051 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/0.8943, allocations: 3.938 kB / 0.7051 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3419/1.236, allocations: 69.84 MB / 0.7733 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/12.55, allocations: 7.938 kB / 0.7733 GB, free: 147.6 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/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