Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.001569/0.001569, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001921/0.001921, allocations: 184.1 kB / 18.66 MB, free: 4.43 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.405/1.405, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.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.001422/0.001423, allocations: 51.94 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1065, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2435/0.35, allocations: 12.49 MB / 387.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.361, allocations: 4.188 MB / 391.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003774/0.365, allocations: 74.56 kB / 391.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007688/0.3727, allocations: 3.225 MB / 394.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008211/0.3809, allocations: 2.129 MB / 396.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002794/0.3838, allocations: 0.8319 MB / 397.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009929/0.3937, allocations: 4.56 MB / 402.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0064/0.4002, allocations: 4.174 MB / 406.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004244/0.4045, allocations: 1.754 MB / 408.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00456/0.4091, allocations: 2.363 MB / 410.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001486/0.4106, allocations: 386.9 kB / 410.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003735/0.4144, allocations: 1.271 MB / 412.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003716/0.4181, allocations: 2.245 MB / 414.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006062/0.4242, allocations: 2.575 MB / 416.9 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.015/0.4393, allocations: 8.364 MB / 425.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.4393, allocations: 0 / 425.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4394, allocations: 4 kB / 425.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000355/0.4397, allocations: 0 / 425.3 MB, free: 13.12 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01719/0.4569, allocations: 5.765 MB / 431 MB, free: 7.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.457, allocations: 8.031 kB / 431.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00252/0.4595, allocations: 0.823 MB / 431.9 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02499/0.4845, allocations: 3.999 MB / 435.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008687/0.4933, allocations: 3.395 MB / 439.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002659/0.4936, allocations: 274.5 kB / 439.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/0.495, allocations: 355.8 kB / 439.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02546/0.5205, allocations: 11.58 MB / 451.5 MB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002356/0.5208, allocations: 43.64 kB / 451.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001506/0.5223, allocations: 167.8 kB / 451.7 MB, free: 1.852 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004408/0.5267, allocations: 2.335 MB / 454 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02123/0.548, allocations: 9.846 MB / 463.9 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06481/0.6128, allocations: 44.14 MB / 0.4961 GB, free: 8.363 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/0.6267, allocations: 5.28 MB / 0.5013 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003978/0.6307, allocations: 2.76 MB / 0.5039 GB, free: 172 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01512/0.6459, allocations: 8.016 MB / 0.5118 GB, free: 7.941 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.272e-05/0.646, allocations: 55.88 kB / 0.5118 GB, free: 7.879 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 5.861e-06/0.646, allocations: 0 / 0.5118 GB, free: 7.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.05666/0.7027, allocations: 20.22 MB / 0.5316 GB, free: 3.523 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.7028, allocations: 180.2 kB / 0.5317 GB, free: 3.309 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007961/0.7108, allocations: 4.785 MB / 0.5364 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005272/0.7114, allocations: 69.62 kB / 0.5365 GB, free: 14.44 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002683/0.7141, allocations: 3.549 MB / 0.5399 GB, free: 10.86 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.7153, allocations: 0.9302 MB / 0.5409 GB, free: 9.922 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003212/0.7186, allocations: 1.35 MB / 0.5422 GB, free: 8.562 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.7187, allocations: 309.1 kB / 0.5425 GB, free: 8.258 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00461/0.7233, allocations: 2.594 MB / 0.545 GB, free: 5.66 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2026/0.9259, allocations: 6.494 MB / 0.5513 GB, free: 142.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01186/0.9379, allocations: 9.89 MB / 0.561 GB, free: 136.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000217/0.9381, allocations: 38.75 kB / 0.561 GB, free: 136.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01871/0.9568, allocations: 9.704 MB / 0.5705 GB, free: 132.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.957, allocations: 64.67 kB / 0.5706 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002328/0.9573, allocations: 137.5 kB / 0.5707 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002851/0.9601, allocations: 0.9545 MB / 0.5716 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006017/0.9662, allocations: 1.58 MB / 0.5732 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008045/0.9743, allocations: 6.56 MB / 0.5796 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005417/0.9797, allocations: 374.2 kB / 0.5799 GB, free: 128.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/0.9812, allocations: 403.9 kB / 0.5803 GB, free: 128.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 810 * Array equations: 5 * 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,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004358/0.9856, allocations: 2.366 MB / 0.5826 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008501/0.9864, allocations: 437.2 kB / 0.5831 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007328/0.9938, allocations: 4.412 MB / 0.5874 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.451e-05/0.9939, allocations: 32.8 kB / 0.5874 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.9939, allocations: 3.688 kB / 0.5874 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.785e-05/0.9939, allocations: 14.69 kB / 0.5874 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02056/1.015, allocations: 10.42 MB / 0.5976 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.607e-05/1.015, allocations: 8.656 kB / 0.5976 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002065/1.017, allocations: 429.4 kB / 0.598 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/1.019, allocations: 0.7667 MB / 0.5988 GB, free: 119.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003406/1.019, allocations: 47.98 kB / 0.5988 GB, free: 119.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006485/1.025, allocations: 6.124 MB / 0.6048 GB, free: 113.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/1.025, allocations: 11.94 kB / 0.6048 GB, free: 113.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/1.036, allocations: 7.738 MB / 0.6124 GB, free: 105.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002405/1.039, allocations: 0.842 MB / 0.6132 GB, free: 104.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001138/1.04, allocations: 47.98 kB / 0.6132 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00256/1.042, allocations: 143.8 kB / 0.6134 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004988/1.043, allocations: 141.7 kB / 0.6135 GB, free: 104.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/1.043, allocations: 68 kB / 0.6136 GB, free: 104.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005141/1.048, allocations: 3.063 MB / 0.6165 GB, free: 101.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.048, allocations: 4 kB / 0.6166 GB, free: 101.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006941/1.055, allocations: 1.157 MB / 0.6177 GB, free: 100.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01153/1.067, allocations: 8.408 MB / 0.6259 GB, free: 91.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009608/1.077, allocations: 6.289 MB / 0.632 GB, free: 85.33 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.077, allocations: 0 / 0.632 GB, free: 85.33 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003777/1.08, allocations: 2.333 MB / 0.6343 GB, free: 82.98 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004986/1.085, allocations: 0.5268 MB / 0.6348 GB, free: 82.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08529/1.171, allocations: 55.1 MB / 0.6886 GB, free: 21.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005326/1.176, allocations: 3.679 MB / 0.6922 GB, free: 17.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005863/1.182, allocations: 2.22 MB / 0.6944 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003683/1.186, allocations: 2.221 MB / 0.6966 GB, free: 12.93 MB / 478.1 MB Notification: Performance of SimCode: time 1.704e-06/1.186, allocations: 0 / 0.6966 GB, free: 12.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3638/1.55, allocations: 82.53 MB / 0.7772 GB, free: 151.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.22/20.77, allocations: 10.25 kB / 0.7772 GB, free: 151.2 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches