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.00136/0.00136, allocations: 101.5 kB / 16.27 MB, free: 5.93 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.001236/0.001236, allocations: 192.5 kB / 17.2 MB, free: 5.574 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.595/1.595, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2123/0.2123, allocations: 43.53 MB / 313.9 MB, free: 0.5156 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.00169/0.00169, allocations: 68.41 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1176, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01233/0.1299, allocations: 11.23 MB / 451.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.1408, allocations: 4.058 MB / 455.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002891/0.1437, allocations: 59.88 kB / 456 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006177/0.1501, allocations: 2.827 MB / 458.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005759/0.1559, allocations: 1.887 MB / 460.7 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00216/0.158, allocations: 0.7018 MB / 461.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007519/0.1656, allocations: 4.178 MB / 465.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007562/0.1732, allocations: 3.902 MB / 469.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004066/0.1773, allocations: 1.596 MB / 471.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004019/0.1814, allocations: 2.235 MB / 473.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.1827, allocations: 376 kB / 473.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.1859, allocations: 1.241 MB / 474.9 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003004/0.189, allocations: 2.046 MB / 476.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004554/0.1936, allocations: 2.451 MB / 479.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.2048, allocations: 7.8 MB / 487.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.2049, allocations: 0 / 487.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.37e-06/0.2049, allocations: 0 / 487.2 MB, free: 8.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003192/0.2052, allocations: 3.938 kB / 487.2 MB, free: 8 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.01353/0.2188, allocations: 5.101 MB / 492.3 MB, free: 2.828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.2188, allocations: 11.89 kB / 492.3 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001219/0.22, allocations: 0.7855 MB / 493.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08893/0.309, allocations: 7.134 MB / 0.4885 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00812/0.3171, allocations: 3.097 MB / 0.4915 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003899/0.3176, allocations: 258.3 kB / 0.4918 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00226/0.3199, allocations: 339.7 kB / 0.4921 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02491/0.3448, allocations: 10.37 MB / 0.5022 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003/0.3452, allocations: 47.59 kB / 0.5023 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002019/0.3472, allocations: 155.8 kB / 0.5024 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0041/0.3513, allocations: 2.088 MB / 0.5045 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01913/0.3705, allocations: 8.617 MB / 0.5129 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2922/0.6627, allocations: 38.42 MB / 0.5504 GB, free: 60.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005747/0.6685, allocations: 2.99 MB / 0.5533 GB, free: 59.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002308/0.6709, allocations: 1.674 MB / 0.555 GB, free: 58.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003765/0.6713, allocations: 344.8 kB / 0.5553 GB, free: 58.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.6713, allocations: 50.22 kB / 0.5553 GB, free: 58.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=176): time 5.04e-06/0.6713, allocations: 0 / 0.5553 GB, free: 58.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=194): time 0.03277/0.7041, allocations: 13.93 MB / 0.5689 GB, free: 52.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.7043, allocations: 206.8 kB / 0.5691 GB, free: 52.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006086/0.7104, allocations: 3.852 MB / 0.5729 GB, free: 50.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/0.7107, allocations: 52.52 kB / 0.573 GB, free: 50.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.7123, allocations: 3.217 MB / 0.5761 GB, free: 47.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006894/0.713, allocations: 0.7369 MB / 0.5768 GB, free: 46.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/0.7144, allocations: 1.212 MB / 0.578 GB, free: 46.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.7144, allocations: 301.1 kB / 0.5783 GB, free: 45.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002648/0.7171, allocations: 2.156 MB / 0.5804 GB, free: 44.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004405/0.7215, allocations: 5.826 MB / 0.5861 GB, free: 36.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008248/0.7298, allocations: 8.642 MB / 0.5945 GB, free: 26.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.45e-05/0.7299, allocations: 36 kB / 0.5946 GB, free: 25.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01244/0.7424, allocations: 7.99 MB / 0.6024 GB, free: 17.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.015e-05/0.7425, allocations: 60 kB / 0.6024 GB, free: 17.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-05/0.7426, allocations: 128 kB / 0.6025 GB, free: 17.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008857/0.7435, allocations: 451 kB / 0.603 GB, free: 17.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004027/0.7475, allocations: 1.411 MB / 0.6043 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/0.7507, allocations: 3.629 MB / 0.6079 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003999/0.7547, allocations: 343.6 kB / 0.6082 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000492/0.7552, allocations: 371.7 kB / 0.6086 GB, free: 11.48 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.002624/0.7579, allocations: 2.237 MB / 0.6108 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004881/0.7584, allocations: 339.6 kB / 0.6111 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004245/0.7626, allocations: 2.887 MB / 0.6139 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/0.7626, allocations: 20 kB / 0.6139 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.7627, allocations: 8 kB / 0.6139 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.7627, allocations: 11.91 kB / 0.6139 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.7743, allocations: 7.789 MB / 0.6215 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.7744, allocations: 0 / 0.6215 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/0.776, allocations: 347.5 kB / 0.6219 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007198/0.7768, allocations: 256.5 kB / 0.6221 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.7769, allocations: 36.36 kB / 0.6222 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003564/0.7805, allocations: 3.174 MB / 0.6253 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.7805, allocations: 8.016 kB / 0.6253 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008382/0.7889, allocations: 5.473 MB / 0.6306 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/0.7903, allocations: 0.6254 MB / 0.6312 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003773/0.7907, allocations: 32 kB / 0.6313 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.7921, allocations: 107.9 kB / 0.6314 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003661/0.7925, allocations: 133.1 kB / 0.6315 GB, free: 3.797 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.7926, allocations: 58.33 kB / 0.6315 GB, free: 3.742 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003582/0.7962, allocations: 2.409 MB / 0.6339 GB, free: 1.352 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7962, allocations: 0 / 0.6339 GB, free: 1.352 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004296/0.8005, allocations: 0.9947 MB / 0.6349 GB, free: 368 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.008542/0.8091, allocations: 6.126 MB / 0.6408 GB, free: 10.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01224/0.8213, allocations: 6.341 MB / 0.647 GB, free: 3.902 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.046e-06/0.8214, allocations: 0 / 0.647 GB, free: 3.902 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.8241, allocations: 1.646 MB / 0.6486 GB, free: 2.242 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/0.8267, allocations: 452.1 kB / 0.6491 GB, free: 1.816 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07255/0.8992, allocations: 49.94 MB / 0.6978 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005609/0.9049, allocations: 3.459 MB / 0.7012 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005885/0.9108, allocations: 1.944 MB / 0.7031 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00348/0.9143, allocations: 1.987 MB / 0.7051 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of SimCode: time 9.42e-07/0.9143, allocations: 0 / 0.7051 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2977/1.212, allocations: 69.86 MB / 0.7733 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/12.57, allocations: 4 kB / 0.7733 GB, free: 148.2 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 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.csv","/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