Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001687, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002123/0.002123, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 59.91 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1089, allocations: 53.39 MB / 426.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2124/0.3213, allocations: 10.43 MB / 436.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007713/0.329, allocations: 3.984 MB / 440.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.3312, allocations: 84.56 kB / 440.9 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00444/0.3356, allocations: 2.228 MB / 443.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005475/0.3411, allocations: 1.866 MB / 445 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00203/0.3431, allocations: 0.7387 MB / 445.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008433/0.3516, allocations: 5.254 MB / 451 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004528/0.3561, allocations: 2.464 MB / 453.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.3591, allocations: 1.509 MB / 454.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004068/0.3631, allocations: 2.216 MB / 457.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.3643, allocations: 300.1 kB / 457.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00316/0.3674, allocations: 1.213 MB / 458.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002863/0.3703, allocations: 1.885 MB / 460.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00475/0.375, allocations: 2.19 MB / 462.7 MB, free: 8.988 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01144/0.3865, allocations: 6.989 MB / 469.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.3865, allocations: 3.938 kB / 469.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.3865, allocations: 0 / 469.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002404/0.3867, allocations: 0 / 469.7 MB, free: 4.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.0165/0.4032, allocations: 5.042 MB / 474.8 MB, free: 28 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.4033, allocations: 12.03 kB / 474.8 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001358/0.4046, allocations: 0.6167 MB / 475.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1861/0.5908, allocations: 12.31 MB / 487.7 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009877/0.6007, allocations: 3.715 MB / 491.4 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.6009, allocations: 200.9 kB / 491.6 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001177/0.602, allocations: 271.8 kB / 491.9 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01792/0.62, allocations: 8.734 MB / 0.4889 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001818/0.6201, allocations: 55.58 kB / 0.4889 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008076/0.621, allocations: 127.9 kB / 0.489 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003586/0.6245, allocations: 1.766 MB / 0.4908 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/0.6406, allocations: 7.525 MB / 0.4981 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05443/0.695, allocations: 35.39 MB / 0.5327 GB, free: 7.531 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009161/0.7042, allocations: 3.58 MB / 0.5362 GB, free: 3.805 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003004/0.7072, allocations: 1.885 MB / 0.538 GB, free: 1.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005408/0.7077, allocations: 332.2 kB / 0.5383 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.544e-05/0.7078, allocations: 59.44 kB / 0.5384 GB, free: 1.461 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.609e-06/0.7078, allocations: 0 / 0.5384 GB, free: 1.461 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.06344/0.7712, allocations: 20.21 MB / 0.5581 GB, free: 13.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/0.7714, allocations: 252.6 kB / 0.5584 GB, free: 12.86 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008754/0.7802, allocations: 3.943 MB / 0.5622 GB, free: 8.934 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005478/0.7807, allocations: 53.89 kB / 0.5623 GB, free: 8.875 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003009/0.7837, allocations: 2.924 MB / 0.5651 GB, free: 5.926 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001503/0.7852, allocations: 0.7596 MB / 0.5659 GB, free: 5.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00339/0.7886, allocations: 1.108 MB / 0.567 GB, free: 4.043 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.7888, allocations: 301.1 kB / 0.5672 GB, free: 3.746 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004091/0.7929, allocations: 2.166 MB / 0.5694 GB, free: 1.574 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007143/0.8, allocations: 5.402 MB / 0.5746 GB, free: 10.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/0.8115, allocations: 8.201 MB / 0.5826 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/0.8116, allocations: 32.88 kB / 0.5827 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01994/0.8316, allocations: 8.647 MB / 0.5911 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001608/0.8317, allocations: 54.41 kB / 0.5912 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002266/0.832, allocations: 120 kB / 0.5913 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004932/0.8369, allocations: 1.495 MB / 0.5927 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004483/0.8414, allocations: 1.22 MB / 0.5939 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01621/0.8576, allocations: 9.95 MB / 0.6037 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004831/0.8624, allocations: 315.6 kB / 0.604 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/0.8635, allocations: 339.9 kB / 0.6043 GB, free: 10.45 MB / 0.5137 GB 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.00456/0.8681, allocations: 1.934 MB / 0.6062 GB, free: 8.508 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/0.8692, allocations: 369.5 kB / 0.6065 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009995/0.8792, allocations: 4.123 MB / 0.6105 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.045e-05/0.8793, allocations: 23.94 kB / 0.6106 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.904e-05/0.8793, allocations: 8 kB / 0.6106 GB, free: 3.977 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.836e-05/0.8793, allocations: 7.969 kB / 0.6106 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2333/1.113, allocations: 9.26 MB / 0.6196 GB, free: 162 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-05/1.113, allocations: 1.125 kB / 0.6196 GB, free: 162 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/1.114, allocations: 272.1 kB / 0.6199 GB, free: 162 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004393/1.118, allocations: 1.342 MB / 0.6212 GB, free: 162 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000354/1.119, allocations: 34.95 kB / 0.6212 GB, free: 162 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.132, allocations: 8.945 MB / 0.63 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/1.132, allocations: 5.094 kB / 0.63 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/1.143, allocations: 7.028 MB / 0.6368 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.144, allocations: 425.5 kB / 0.6372 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009804/1.145, allocations: 36.28 kB / 0.6373 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002199/1.147, allocations: 121.6 kB / 0.6374 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005035/1.148, allocations: 115 kB / 0.6375 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.148, allocations: 50.44 kB / 0.6375 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005101/1.153, allocations: 2.502 MB / 0.64 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/1.153, allocations: 0 / 0.64 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00538/1.159, allocations: 0.9912 MB / 0.641 GB, free: 154.2 MB / 0.5137 GB 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.01026/1.169, allocations: 7.686 MB / 0.6485 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007895/1.177, allocations: 5.156 MB / 0.6535 GB, free: 149.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.177, allocations: 0 / 0.6535 GB, free: 149.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003074/1.18, allocations: 1.938 MB / 0.6554 GB, free: 148.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003565/1.183, allocations: 496.7 kB / 0.6559 GB, free: 147.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06187/1.245, allocations: 45.72 MB / 0.7005 GB, free: 98.07 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004113/1.249, allocations: 3.084 MB / 0.7035 GB, free: 94.98 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00383/1.253, allocations: 1.819 MB / 0.7053 GB, free: 93.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002339/1.256, allocations: 1.749 MB / 0.707 GB, free: 91.41 MB / 0.5137 GB Notification: Performance of SimCode: time 9.11e-07/1.256, allocations: 0 / 0.707 GB, free: 91.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1157/1.371, allocations: 75.08 MB / 0.7803 GB, free: 16.76 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.73/24.1, allocations: 11.92 kB / 0.7803 GB, free: 16.75 MB / 0.5137 GB " [Timeout remaining time 636] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 26.789674249012023]