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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 47.92 kB / 370.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2312, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01217/0.2433, allocations: 9.139 MB / 431.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008317/0.2516, allocations: 3.777 MB / 435.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.2532, allocations: 79.56 kB / 435.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004771/0.2579, allocations: 2.169 MB / 437.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004987/0.2629, allocations: 1.907 MB / 439.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001805/0.2647, allocations: 0.7448 MB / 440.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007424/0.2722, allocations: 5.188 MB / 445.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00348/0.2756, allocations: 2.388 MB / 448 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.2782, allocations: 1.515 MB / 449.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003438/0.2817, allocations: 2.106 MB / 451.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000888/0.2826, allocations: 300 kB / 451.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00243/0.285, allocations: 1.092 MB / 453 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002241/0.2872, allocations: 1.905 MB / 454.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002442/0.2897, allocations: 1.678 MB / 456.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008346/0.298, allocations: 7.06 MB / 463.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.298, allocations: 0 / 463.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.298, allocations: 0 / 463.6 MB, free: 5.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001782/0.2982, allocations: 0 / 463.6 MB, free: 5.164 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.01319/0.3114, allocations: 4.974 MB / 468.6 MB, free: 132 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.3114, allocations: 8.031 kB / 468.6 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/0.3125, allocations: 0.6206 MB / 469.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1724/0.4849, allocations: 12.3 MB / 481.5 MB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009905/0.4948, allocations: 3.865 MB / 485.4 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/0.495, allocations: 205 kB / 485.6 MB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000753/0.4957, allocations: 275.8 kB / 485.9 MB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.5104, allocations: 8.838 MB / 494.7 MB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.5105, allocations: 39.7 kB / 494.7 MB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003411/0.5108, allocations: 127.9 kB / 494.9 MB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/0.5141, allocations: 1.77 MB / 496.6 MB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01447/0.5285, allocations: 7.511 MB / 0.4923 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04414/0.5727, allocations: 33.59 MB / 0.5251 GB, free: 9.258 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007912/0.5806, allocations: 3.106 MB / 0.5282 GB, free: 6.117 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/0.5832, allocations: 1.9 MB / 0.53 GB, free: 4.207 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.5835, allocations: 101.1 kB / 0.5301 GB, free: 4.109 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.5836, allocations: 51.56 kB / 0.5302 GB, free: 4.047 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.258e-06/0.5836, allocations: 3.938 kB / 0.5302 GB, free: 4.043 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2261/0.8097, allocations: 20.09 MB / 0.5498 GB, free: 103.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.8098, allocations: 262.5 kB / 0.55 GB, free: 103.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004154/0.8139, allocations: 4.14 MB / 0.5541 GB, free: 99.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/0.8141, allocations: 52.77 kB / 0.5541 GB, free: 99.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.8153, allocations: 2.922 MB / 0.557 GB, free: 97.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00045/0.8157, allocations: 0.7589 MB / 0.5577 GB, free: 96.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/0.8168, allocations: 1.108 MB / 0.5588 GB, free: 95.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.683e-05/0.8168, allocations: 301.1 kB / 0.5591 GB, free: 94.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/0.819, allocations: 2.166 MB / 0.5612 GB, free: 92.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003119/0.8222, allocations: 5.503 MB / 0.5666 GB, free: 85.66 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006047/0.8282, allocations: 8.2 MB / 0.5746 GB, free: 75.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.181e-05/0.8282, allocations: 36 kB / 0.5746 GB, free: 75.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01157/0.8398, allocations: 8.636 MB / 0.5831 GB, free: 67.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.512e-05/0.8399, allocations: 56.94 kB / 0.5831 GB, free: 67.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.218e-05/0.8399, allocations: 112 kB / 0.5832 GB, free: 67.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003529/0.8435, allocations: 1.5 MB / 0.5847 GB, free: 65.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/0.8466, allocations: 1.224 MB / 0.5859 GB, free: 64.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.857, allocations: 9.736 MB / 0.5954 GB, free: 54.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003817/0.8608, allocations: 323.4 kB / 0.5957 GB, free: 54.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004787/0.8613, allocations: 332 kB / 0.596 GB, free: 53.88 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.002212/0.8635, allocations: 1.939 MB / 0.5979 GB, free: 51.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/0.8641, allocations: 369.5 kB / 0.5983 GB, free: 51.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006469/0.8705, allocations: 4.131 MB / 0.6023 GB, free: 47.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.8706, allocations: 24 kB / 0.6023 GB, free: 47.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.8706, allocations: 9.938 kB / 0.6023 GB, free: 47.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.8706, allocations: 7.969 kB / 0.6023 GB, free: 47.38 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.8841, allocations: 8.787 MB / 0.6109 GB, free: 38.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.8841, allocations: 7.938 kB / 0.6109 GB, free: 38.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.8853, allocations: 263.6 kB / 0.6112 GB, free: 38.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00337/0.8887, allocations: 1.343 MB / 0.6125 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001939/0.8889, allocations: 32 kB / 0.6125 GB, free: 36.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009836/0.8987, allocations: 8.762 MB / 0.6211 GB, free: 28.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.8987, allocations: 2.625 kB / 0.6211 GB, free: 28.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/0.9087, allocations: 7.033 MB / 0.6279 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.9099, allocations: 345.4 kB / 0.6283 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009114/0.9108, allocations: 39.92 kB / 0.6283 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/0.9129, allocations: 115.6 kB / 0.6284 GB, free: 20.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004316/0.9133, allocations: 121 kB / 0.6285 GB, free: 20.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001872/0.9135, allocations: 51.98 kB / 0.6286 GB, free: 20.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004236/0.9178, allocations: 2.502 MB / 0.631 GB, free: 17.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.9178, allocations: 0 / 0.631 GB, free: 17.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005262/0.923, allocations: 1.008 MB / 0.632 GB, free: 16.8 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.009807/0.9328, allocations: 7.689 MB / 0.6395 GB, free: 9.074 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007219/0.94, allocations: 5.14 MB / 0.6445 GB, free: 3.941 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.9401, allocations: 4 kB / 0.6445 GB, free: 3.938 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/0.9428, allocations: 1.936 MB / 0.6464 GB, free: 1.992 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003637/0.9465, allocations: 0.4935 MB / 0.6469 GB, free: 1.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0782/1.025, allocations: 45.8 MB / 0.6916 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003682/1.028, allocations: 2.551 MB / 0.6941 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004669/1.033, allocations: 1.815 MB / 0.6959 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002828/1.036, allocations: 1.757 MB / 0.6976 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of SimCode: time 1.223e-06/1.036, allocations: 0 / 0.6976 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3095/1.345, allocations: 76.09 MB / 0.7719 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.4/17.75, allocations: 10.84 kB / 0.7719 GB, free: 166.6 MB / 0.5294 GB " [Timeout remaining time 642] (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.00059976 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.246815085411072]