Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 116 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 210.7 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 43.92 kB / 377.8 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2903, allocations: 53.37 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0131/0.3034, allocations: 10.47 MB / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009155/0.3125, allocations: 4.007 MB / 445.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001733/0.3142, allocations: 83.56 kB / 445.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004828/0.3191, allocations: 2.242 MB / 447.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0052/0.3243, allocations: 1.876 MB / 449.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.3262, allocations: 0.7487 MB / 450.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00844/0.3346, allocations: 5.264 MB / 455.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003666/0.3383, allocations: 2.396 MB / 458.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002775/0.341, allocations: 1.511 MB / 459.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00399/0.345, allocations: 2.204 MB / 461.9 MB, free: 7.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008736/0.3459, allocations: 300 kB / 462.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002561/0.3485, allocations: 1.217 MB / 463.5 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002178/0.3506, allocations: 1.897 MB / 465.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003178/0.3538, allocations: 2.191 MB / 467.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009695/0.3635, allocations: 6.986 MB / 474.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3635, allocations: 0 / 474.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3635, allocations: 0 / 474.5 MB, free: 11.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002093/0.3637, allocations: 3.938 kB / 474.5 MB, free: 11.25 MB / 382.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.01583/0.3796, allocations: 4.971 MB / 479.5 MB, free: 6.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.3796, allocations: 11.97 kB / 479.5 MB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001121/0.3807, allocations: 0.6167 MB / 480.1 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1677/0.5484, allocations: 12.3 MB / 492.4 MB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009711/0.5582, allocations: 3.639 MB / 496.1 MB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.5584, allocations: 197 kB / 496.3 MB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007966/0.5591, allocations: 267.8 kB / 496.5 MB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01593/0.5751, allocations: 8.734 MB / 0.4934 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001583/0.5752, allocations: 51.59 kB / 0.4935 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004256/0.5757, allocations: 131.9 kB / 0.4936 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003234/0.5789, allocations: 1.762 MB / 0.4953 GB, free: 9.789 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01564/0.5945, allocations: 7.534 MB / 0.5027 GB, free: 2.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2785/0.873, allocations: 35.3 MB / 0.5371 GB, free: 92.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007774/0.8808, allocations: 3.113 MB / 0.5402 GB, free: 92.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002295/0.8831, allocations: 1.901 MB / 0.542 GB, free: 92.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003134/0.8834, allocations: 103.7 kB / 0.5421 GB, free: 92.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.8834, allocations: 56.53 kB / 0.5422 GB, free: 92.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.509e-06/0.8834, allocations: 0 / 0.5422 GB, free: 92.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04652/0.93, allocations: 20 MB / 0.5617 GB, free: 83.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.292e-05/0.9301, allocations: 253.4 kB / 0.562 GB, free: 83.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/0.9347, allocations: 3.948 MB / 0.5658 GB, free: 79.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003611/0.9351, allocations: 56.98 kB / 0.5659 GB, free: 79.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.9363, allocations: 2.921 MB / 0.5687 GB, free: 76.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006631/0.937, allocations: 0.7471 MB / 0.5695 GB, free: 75.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/0.9381, allocations: 1.117 MB / 0.5706 GB, free: 74.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/0.9381, allocations: 305.1 kB / 0.5708 GB, free: 74.43 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.9405, allocations: 2.166 MB / 0.573 GB, free: 72.26 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003535/0.9441, allocations: 5.397 MB / 0.5782 GB, free: 65.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006654/0.9507, allocations: 8.201 MB / 0.5862 GB, free: 55.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.116e-05/0.9508, allocations: 36 kB / 0.5863 GB, free: 55.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0136/0.9644, allocations: 8.642 MB / 0.5947 GB, free: 46.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.467e-05/0.9645, allocations: 56.94 kB / 0.5948 GB, free: 46.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.079e-05/0.9646, allocations: 112 kB / 0.5949 GB, free: 46.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003661/0.9682, allocations: 1.505 MB / 0.5963 GB, free: 45.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003566/0.9718, allocations: 1.228 MB / 0.5975 GB, free: 44.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.983, allocations: 9.828 MB / 0.6071 GB, free: 34.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00448/0.9875, allocations: 323.6 kB / 0.6074 GB, free: 33.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.9885, allocations: 328.4 kB / 0.6078 GB, free: 33.5 MB / 446.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.003635/0.9922, allocations: 1.937 MB / 0.6097 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009546/0.9931, allocations: 373.6 kB / 0.61 GB, free: 31.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007516/1.001, allocations: 4.127 MB / 0.614 GB, free: 27.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.065e-05/1.001, allocations: 20 kB / 0.6141 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.453e-05/1.001, allocations: 12 kB / 0.6141 GB, free: 27.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/1.001, allocations: 7.969 kB / 0.6141 GB, free: 27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/1.018, allocations: 9.225 MB / 0.6231 GB, free: 17.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/1.018, allocations: 0 / 0.6231 GB, free: 17.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/1.019, allocations: 271.5 kB / 0.6233 GB, free: 17.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003906/1.023, allocations: 1.347 MB / 0.6247 GB, free: 16.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004822/1.023, allocations: 35.98 kB / 0.6247 GB, free: 16.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/1.034, allocations: 8.848 MB / 0.6333 GB, free: 7.141 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.034, allocations: 7.031 kB / 0.6333 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.045, allocations: 7.048 MB / 0.6402 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/1.046, allocations: 350.4 kB / 0.6406 GB, free: 15.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008781/1.047, allocations: 36 kB / 0.6406 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/1.049, allocations: 119.8 kB / 0.6407 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004555/1.049, allocations: 116.4 kB / 0.6408 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/1.049, allocations: 51.98 kB / 0.6409 GB, free: 15.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005313/1.055, allocations: 2.501 MB / 0.6433 GB, free: 12.92 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/1.055, allocations: 0 / 0.6433 GB, free: 12.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005754/1.06, allocations: 0.9921 MB / 0.6443 GB, free: 11.93 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.0146/1.075, allocations: 7.683 MB / 0.6518 GB, free: 4.203 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01022/1.085, allocations: 5.15 MB / 0.6568 GB, free: 15.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/1.085, allocations: 480 / 0.6568 GB, free: 15.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004195/1.089, allocations: 1.944 MB / 0.6587 GB, free: 13.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004023/1.093, allocations: 0.4924 MB / 0.6592 GB, free: 12.63 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0893/1.183, allocations: 45.79 MB / 0.7039 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005378/1.188, allocations: 3.079 MB / 0.7069 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005049/1.193, allocations: 1.831 MB / 0.7087 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00333/1.196, allocations: 1.749 MB / 0.7104 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of SimCode: time 1.193e-06/1.196, allocations: 0 / 0.7104 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3665/1.563, allocations: 79.68 MB / 0.7882 GB, free: 166.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.85/26.42, allocations: 5.938 kB / 0.7882 GB, free: 166.5 MB / 0.545 GB " [Timeout remaining time 633] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00059976 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.12887223099824]