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.001738/0.001738, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002137/0.002137, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001619/0.001619, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2277, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01141/0.2391, allocations: 9.132 MB / 440.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007497/0.2466, allocations: 3.791 MB / 444 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008528/0.2474, allocations: 79.56 kB / 444.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00415/0.2516, allocations: 2.145 MB / 446.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004188/0.2557, allocations: 1.88 MB / 448.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001516/0.2573, allocations: 0.7525 MB / 448.9 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006594/0.2639, allocations: 5.26 MB / 454.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002848/0.2667, allocations: 2.396 MB / 456.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.2687, allocations: 1.507 MB / 458 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002847/0.2715, allocations: 2.102 MB / 460.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005703/0.2721, allocations: 300 kB / 460.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001937/0.274, allocations: 1.073 MB / 461.5 MB, free: 8.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001818/0.2758, allocations: 1.897 MB / 463.4 MB, free: 6.188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001818/0.2776, allocations: 1.647 MB / 465 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007557/0.2852, allocations: 7.02 MB / 472.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2852, allocations: 0 / 472.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2852, allocations: 0 / 472.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001025/0.2853, allocations: 0 / 472.1 MB, free: 13.48 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.01229/0.2976, allocations: 4.971 MB / 477 MB, free: 8.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.2976, allocations: 8.031 kB / 477 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008555/0.2985, allocations: 0.6206 MB / 477.7 MB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1704/0.4689, allocations: 12.3 MB / 489.9 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00984/0.4788, allocations: 3.651 MB / 493.6 MB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.479, allocations: 201 kB / 493.8 MB, free: 7.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007463/0.4797, allocations: 267.8 kB / 494.1 MB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/0.4944, allocations: 8.834 MB / 0.4911 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001347/0.4946, allocations: 51.59 kB / 0.4912 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003385/0.4949, allocations: 127.9 kB / 0.4913 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00332/0.4982, allocations: 1.77 MB / 0.493 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.5129, allocations: 7.503 MB / 0.5003 GB, free: 4.375 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04568/0.5585, allocations: 33.6 MB / 0.5331 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1963/0.7549, allocations: 3.108 MB / 0.5362 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/0.7571, allocations: 1.897 MB / 0.538 GB, free: 101.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002964/0.7574, allocations: 99.31 kB / 0.5381 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.7574, allocations: 51.58 kB / 0.5382 GB, free: 101 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.938e-06/0.7574, allocations: 0 / 0.5382 GB, free: 101 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05499/0.8124, allocations: 20.07 MB / 0.5578 GB, free: 90.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/0.8124, allocations: 256.6 kB / 0.558 GB, free: 89.72 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003859/0.8163, allocations: 4.136 MB / 0.5621 GB, free: 85.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001855/0.8165, allocations: 49.7 kB / 0.5621 GB, free: 85.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/0.8176, allocations: 2.922 MB / 0.565 GB, free: 83.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004614/0.818, allocations: 0.7501 MB / 0.5657 GB, free: 82.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/0.8191, allocations: 1.115 MB / 0.5668 GB, free: 81.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.117e-05/0.8191, allocations: 308.7 kB / 0.5671 GB, free: 80.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002223/0.8214, allocations: 2.166 MB / 0.5692 GB, free: 78.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00327/0.8246, allocations: 5.508 MB / 0.5746 GB, free: 71.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006079/0.8307, allocations: 8.187 MB / 0.5826 GB, free: 61.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.754e-05/0.8308, allocations: 32 kB / 0.5826 GB, free: 61.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01126/0.842, allocations: 8.644 MB / 0.591 GB, free: 53.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.739e-05/0.8421, allocations: 60.16 kB / 0.5911 GB, free: 53.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.25e-05/0.8422, allocations: 116 kB / 0.5912 GB, free: 52.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003471/0.8456, allocations: 1.5 MB / 0.5927 GB, free: 51.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002999/0.8486, allocations: 1.22 MB / 0.5939 GB, free: 50.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.859, allocations: 9.745 MB / 0.6034 GB, free: 40.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003808/0.8628, allocations: 319.6 kB / 0.6037 GB, free: 40.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004376/0.8632, allocations: 339.9 kB / 0.604 GB, free: 39.72 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.002097/0.8653, allocations: 1.93 MB / 0.6059 GB, free: 37.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005006/0.8658, allocations: 369.5 kB / 0.6062 GB, free: 37.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006471/0.8723, allocations: 4.131 MB / 0.6103 GB, free: 33.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.8723, allocations: 27.94 kB / 0.6103 GB, free: 33.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.8723, allocations: 4 kB / 0.6103 GB, free: 33.24 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.8723, allocations: 13.05 kB / 0.6103 GB, free: 33.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.8848, allocations: 8.796 MB / 0.6189 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.8848, allocations: 0 / 0.6189 GB, free: 24.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.886, allocations: 263.6 kB / 0.6192 GB, free: 24.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003278/0.8893, allocations: 1.355 MB / 0.6205 GB, free: 22.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.8894, allocations: 28 kB / 0.6205 GB, free: 22.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009423/0.8989, allocations: 8.754 MB / 0.6291 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.8989, allocations: 4.75 kB / 0.6291 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009088/0.908, allocations: 7.042 MB / 0.6359 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009087/0.9089, allocations: 353.3 kB / 0.6363 GB, free: 6.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004202/0.9093, allocations: 32 kB / 0.6363 GB, free: 6.457 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/0.9108, allocations: 111.8 kB / 0.6364 GB, free: 6.348 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.9111, allocations: 113.1 kB / 0.6365 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.9112, allocations: 59.66 kB / 0.6366 GB, free: 6.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002857/0.9141, allocations: 2.497 MB / 0.639 GB, free: 3.703 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9141, allocations: 7.844 kB / 0.639 GB, free: 3.699 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003822/0.9179, allocations: 0.9921 MB / 0.64 GB, free: 2.707 MB / 446.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.01141/0.9293, allocations: 7.683 MB / 0.6475 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008761/0.9381, allocations: 5.15 MB / 0.6525 GB, free: 5.844 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.9381, allocations: 4 kB / 0.6525 GB, free: 5.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003554/0.9416, allocations: 1.936 MB / 0.6544 GB, free: 3.891 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/0.9446, allocations: 0.4915 MB / 0.6549 GB, free: 3.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07228/1.017, allocations: 45.77 MB / 0.6996 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003469/1.02, allocations: 2.543 MB / 0.7021 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004272/1.025, allocations: 1.827 MB / 0.7039 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00254/1.027, allocations: 1.749 MB / 0.7056 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of SimCode: time 1.323e-06/1.027, allocations: 0 / 0.7056 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3079/1.335, allocations: 76.03 MB / 0.7798 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/17.65, allocations: 7.328 kB / 0.7798 GB, free: 149.1 MB / 0.5294 GB " [Timeout remaining time 642] (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: 20.299153578002006]