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.001525/0.001525, allocations: 109.2 kB / 16.41 MB, free: 6.449 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.001685/0.001685, allocations: 192.8 kB / 17.34 MB, free: 5.738 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.605/1.605, 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.2299/0.2299, allocations: 43.53 MB / 314.1 MB, free: 456 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.002014/0.002014, allocations: 63.91 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1215, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01299/0.1345, allocations: 11.23 MB / 0.4984 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008854/0.1434, allocations: 4.069 MB / 0.5023 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001984/0.1454, allocations: 59.88 kB / 0.5024 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005551/0.1511, allocations: 2.823 MB / 0.5052 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006341/0.1574, allocations: 1.899 MB / 0.507 GB, free: 8.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001836/0.1593, allocations: 0.7018 MB / 0.5077 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007583/0.1669, allocations: 4.175 MB / 0.5118 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005422/0.1723, allocations: 3.886 MB / 0.5156 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00336/0.1757, allocations: 1.592 MB / 0.5171 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003813/0.1796, allocations: 2.247 MB / 0.5193 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001179/0.1808, allocations: 372 kB / 0.5197 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002491/0.1833, allocations: 1.233 MB / 0.5209 GB, free: 9.855 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002181/0.1855, allocations: 2.046 MB / 0.5229 GB, free: 7.805 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002812/0.1883, allocations: 2.459 MB / 0.5253 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2548/0.4431, allocations: 8.095 MB / 0.5332 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/0.4432, allocations: 0 / 0.5332 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4432, allocations: 0 / 0.5332 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003515/0.4436, allocations: 0 / 0.5332 GB, free: 14.91 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.01708/0.4607, allocations: 5.238 MB / 0.5383 GB, free: 12.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.4607, allocations: 14.08 kB / 0.5383 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001746/0.4625, allocations: 0.7787 MB / 0.5391 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0907/0.5532, allocations: 7.168 MB / 0.5461 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009036/0.5623, allocations: 3.144 MB / 0.5491 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/0.5627, allocations: 250.9 kB / 0.5494 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002054/0.5648, allocations: 338.5 kB / 0.5497 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.5855, allocations: 10.38 MB / 0.5598 GB, free: 8.441 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/0.5857, allocations: 43.53 kB / 0.5599 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000619/0.5863, allocations: 157.7 kB / 0.56 GB, free: 8.363 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002951/0.5893, allocations: 2.101 MB / 0.5621 GB, free: 7.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01518/0.6045, allocations: 8.598 MB / 0.5705 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05368/0.6582, allocations: 38.31 MB / 0.6079 GB, free: 11.81 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00634/0.6646, allocations: 2.992 MB / 0.6108 GB, free: 8.695 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002793/0.6674, allocations: 1.688 MB / 0.6125 GB, free: 7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004728/0.6679, allocations: 337.7 kB / 0.6128 GB, free: 6.625 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.654e-05/0.668, allocations: 63.02 kB / 0.6128 GB, free: 6.555 MB / 462.1 MB Notification: Performance of pre-optimization done (n=176): time 4.919e-06/0.668, allocations: 6.156 kB / 0.6129 GB, free: 6.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=194): time 0.03409/0.7021, allocations: 14.16 MB / 0.6267 GB, free: 8.324 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.7023, allocations: 208 kB / 0.6269 GB, free: 8.082 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005823/0.7081, allocations: 3.857 MB / 0.6306 GB, free: 4.242 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000436/0.7086, allocations: 57.7 kB / 0.6307 GB, free: 4.18 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002726/0.7113, allocations: 3.342 MB / 0.634 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/0.7124, allocations: 0.7714 MB / 0.6347 GB, free: 104 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/0.7142, allocations: 1.219 MB / 0.6359 GB, free: 14.87 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.7143, allocations: 301.1 kB / 0.6362 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003697/0.718, allocations: 2.151 MB / 0.6383 GB, free: 12.42 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007443/0.7255, allocations: 5.832 MB / 0.644 GB, free: 4.816 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/0.7378, allocations: 8.634 MB / 0.6524 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/0.7379, allocations: 36 kB / 0.6525 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=783) (initialization): time 0.01766/0.7556, allocations: 8.008 MB / 0.6603 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.847e-05/0.7557, allocations: 60 kB / 0.6603 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.7559, allocations: 128 kB / 0.6605 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.7569, allocations: 441.9 kB / 0.6609 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004755/0.7617, allocations: 1.419 MB / 0.6623 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004657/0.7664, allocations: 3.616 MB / 0.6658 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004772/0.7712, allocations: 350.4 kB / 0.6661 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009497/0.7721, allocations: 368 kB / 0.6665 GB, free: 12.63 MB / 0.5137 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 (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.004407/0.7766, allocations: 2.24 MB / 0.6687 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008007/0.7774, allocations: 357.6 kB / 0.669 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006118/0.7835, allocations: 2.886 MB / 0.6718 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-05/0.7836, allocations: 20 kB / 0.6718 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.7836, allocations: 8 kB / 0.6718 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-05/0.7837, allocations: 11.97 kB / 0.6719 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/0.8008, allocations: 7.773 MB / 0.6795 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/0.8009, allocations: 4 kB / 0.6795 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/0.8028, allocations: 339.5 kB / 0.6798 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000826/0.8036, allocations: 255.5 kB / 0.68 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002471/0.8039, allocations: 43.97 kB / 0.6801 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003951/0.8078, allocations: 3.17 MB / 0.6832 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.8079, allocations: 4.578 kB / 0.6832 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009335/0.8172, allocations: 5.497 MB / 0.6885 GB, free: 5.848 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001734/0.819, allocations: 0.6468 MB / 0.6892 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005709/0.8196, allocations: 35.94 kB / 0.6892 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.8211, allocations: 111.9 kB / 0.6893 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003633/0.8215, allocations: 125.1 kB / 0.6894 GB, free: 4.914 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.8217, allocations: 59.97 kB / 0.6895 GB, free: 4.855 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004046/0.8257, allocations: 2.405 MB / 0.6918 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.233e-06/0.8257, allocations: 3.469 kB / 0.6918 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005479/0.8312, allocations: 0.9932 MB / 0.6928 GB, free: 1.477 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.01078/0.842, allocations: 6.141 MB / 0.6988 GB, free: 11.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01017/0.8522, allocations: 5.182 MB / 0.7039 GB, free: 6.145 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.8523, allocations: 0 / 0.7039 GB, free: 6.145 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002903/0.8552, allocations: 1.642 MB / 0.7055 GB, free: 4.488 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002774/0.858, allocations: 448 kB / 0.7059 GB, free: 4.062 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07826/0.9363, allocations: 44.74 MB / 0.7496 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2524/1.189, allocations: 3.455 MB / 0.753 GB, free: 213 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005914/1.195, allocations: 1.946 MB / 0.7549 GB, free: 213 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003639/1.198, allocations: 1.992 MB / 0.7568 GB, free: 213 MB / 0.5919 GB Notification: Performance of SimCode: time 1.183e-06/1.198, allocations: 0 / 0.7568 GB, free: 213 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1062/1.305, allocations: 66.27 MB / 0.8215 GB, free: 166.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.93/18.23, allocations: 3.906 kB / 0.8215 GB, free: 166.5 MB / 0.5919 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