Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",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: 110.2 kB / 17.07 MB, free: 6.016 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.001521/0.001521, allocations: 191 kB / 18 MB, free: 5.098 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.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001137, allocations: 47.94 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2869, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01027/0.2972, allocations: 10.43 MB / 410.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007713/0.305, allocations: 3.944 MB / 414.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.3067, allocations: 63.81 kB / 414.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004163/0.3109, allocations: 2.219 MB / 416.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005316/0.3163, allocations: 1.899 MB / 418.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.3182, allocations: 0.737 MB / 419.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007078/0.3253, allocations: 5.173 MB / 424.7 MB, free: 256 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003747/0.3291, allocations: 2.885 MB / 427.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002694/0.3318, allocations: 1.487 MB / 429.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003047/0.3349, allocations: 2.037 MB / 431.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009142/0.3359, allocations: 300 kB / 431.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.3384, allocations: 1.205 MB / 432.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002125/0.3406, allocations: 1.847 MB / 434.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00309/0.3437, allocations: 2.202 MB / 436.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009287/0.353, allocations: 7.039 MB / 443.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.3531, allocations: 0 / 443.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3531, allocations: 0 / 443.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002418/0.3533, allocations: 0 / 443.7 MB, free: 13.14 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01546/0.3688, allocations: 5.046 MB / 448.8 MB, free: 8.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.3689, allocations: 8.031 kB / 448.8 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001541/0.3704, allocations: 0.6245 MB / 449.4 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1676/0.538, allocations: 12.3 MB / 461.7 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009357/0.5474, allocations: 3.933 MB / 465.6 MB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.5477, allocations: 197 kB / 465.8 MB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001023/0.5487, allocations: 275.8 kB / 466.1 MB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01544/0.5641, allocations: 8.722 MB / 474.8 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.5644, allocations: 47.62 kB / 474.9 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005596/0.5649, allocations: 135.8 kB / 475 MB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00317/0.5681, allocations: 1.774 MB / 476.8 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/0.5824, allocations: 7.526 MB / 484.3 MB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04693/0.6294, allocations: 35.42 MB / 0.5075 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007864/0.6373, allocations: 3.68 MB / 0.5111 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002493/0.6398, allocations: 2.037 MB / 0.5131 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004534/0.6403, allocations: 332.3 kB / 0.5134 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.6403, allocations: 55.5 kB / 0.5135 GB, free: 8.934 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.368e-06/0.6404, allocations: 0 / 0.5135 GB, free: 8.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05439/0.6948, allocations: 20.25 MB / 0.5332 GB, free: 4.586 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.6949, allocations: 256.6 kB / 0.5335 GB, free: 4.281 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005882/0.7008, allocations: 3.955 MB / 0.5374 GB, free: 304 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004407/0.7013, allocations: 53.7 kB / 0.5374 GB, free: 244 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2281/0.9295, allocations: 2.92 MB / 0.5403 GB, free: 131.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001632/0.9311, allocations: 0.7528 MB / 0.541 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003346/0.9345, allocations: 1.107 MB / 0.5421 GB, free: 130.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.754e-05/0.9346, allocations: 306 kB / 0.5424 GB, free: 129.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003316/0.9379, allocations: 2.167 MB / 0.5445 GB, free: 129.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005086/0.9431, allocations: 5.402 MB / 0.5498 GB, free: 124 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008677/0.9518, allocations: 8.202 MB / 0.5578 GB, free: 117.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001674/0.952, allocations: 31.34 kB / 0.5578 GB, free: 117.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01671/0.9687, allocations: 8.661 MB / 0.5663 GB, free: 111.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.706e-05/0.9689, allocations: 52 kB / 0.5663 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/0.969, allocations: 121.4 kB / 0.5664 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003822/0.9728, allocations: 1.5 MB / 0.5679 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/0.9767, allocations: 1.229 MB / 0.5691 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.9873, allocations: 9.937 MB / 0.5788 GB, free: 99.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004529/0.9919, allocations: 324.3 kB / 0.5791 GB, free: 98.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007467/0.9926, allocations: 328.8 kB / 0.5794 GB, free: 98.51 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003228/0.9959, allocations: 1.943 MB / 0.5813 GB, free: 96.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000916/0.9968, allocations: 369.5 kB / 0.5817 GB, free: 96.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006539/1.003, allocations: 4.151 MB / 0.5857 GB, free: 92.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.045e-05/1.003, allocations: 20 kB / 0.5857 GB, free: 92.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/1.003, allocations: 8 kB / 0.5857 GB, free: 92.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.143e-05/1.004, allocations: 7.969 kB / 0.5857 GB, free: 92.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/1.019, allocations: 9.29 MB / 0.5948 GB, free: 82.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/1.019, allocations: 4 kB / 0.5948 GB, free: 82.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/1.021, allocations: 267.6 kB / 0.5951 GB, free: 82.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003582/1.024, allocations: 1.347 MB / 0.5964 GB, free: 81.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003315/1.024, allocations: 31.98 kB / 0.5964 GB, free: 81.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009811/1.034, allocations: 8.936 MB / 0.6052 GB, free: 72.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.034, allocations: 4 kB / 0.6052 GB, free: 72.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009846/1.044, allocations: 7.057 MB / 0.612 GB, free: 64.94 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/1.045, allocations: 426.8 kB / 0.6125 GB, free: 64.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008154/1.046, allocations: 31.91 kB / 0.6125 GB, free: 64.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002024/1.048, allocations: 122.8 kB / 0.6126 GB, free: 64.37 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004933/1.049, allocations: 119.4 kB / 0.6127 GB, free: 64.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/1.049, allocations: 52 kB / 0.6128 GB, free: 64.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004113/1.053, allocations: 2.502 MB / 0.6152 GB, free: 61.69 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.053, allocations: 0 / 0.6152 GB, free: 61.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00637/1.059, allocations: 1.009 MB / 0.6162 GB, free: 60.68 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * 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,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0109/1.07, allocations: 7.715 MB / 0.6237 GB, free: 52.94 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007834/1.078, allocations: 5.369 MB / 0.629 GB, free: 47.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.078, allocations: 0 / 0.629 GB, free: 47.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003134/1.081, allocations: 2.094 MB / 0.631 GB, free: 45.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003744/1.085, allocations: 0.4899 MB / 0.6315 GB, free: 44.99 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07304/1.158, allocations: 45.78 MB / 0.6762 GB, free: 10.24 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004569/1.163, allocations: 3.087 MB / 0.6792 GB, free: 7.121 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004648/1.168, allocations: 1.819 MB / 0.681 GB, free: 5.293 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003344/1.171, allocations: 1.753 MB / 0.6827 GB, free: 3.539 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/1.171, allocations: 0 / 0.6827 GB, free: 3.539 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3514/1.522, allocations: 74.63 MB / 0.7556 GB, free: 166.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.32/23.84, allocations: 6 kB / 0.7556 GB, free: 166.9 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches