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.001604/0.001604, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001778/0.001778, allocations: 204.2 kB / 23.73 MB, free: 4.379 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.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001554/0.001554, allocations: 51.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2199, 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.01119/0.231, allocations: 9.125 MB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007575/0.2386, allocations: 3.795 MB / 444 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.2397, allocations: 79.56 kB / 444.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004271/0.244, allocations: 2.149 MB / 446.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004426/0.2484, allocations: 1.887 MB / 448.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.2501, allocations: 0.7448 MB / 448.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007114/0.2572, allocations: 5.272 MB / 454.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002959/0.2601, allocations: 2.397 MB / 456.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.2621, allocations: 1.503 MB / 458 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002945/0.265, allocations: 2.208 MB / 460.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004834/0.2655, allocations: 300 kB / 460.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.2673, allocations: 1.092 MB / 461.6 MB, free: 7.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001764/0.2691, allocations: 1.893 MB / 463.5 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.2709, allocations: 1.655 MB / 465.2 MB, free: 4.391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006964/0.2778, allocations: 7.016 MB / 472.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2778, allocations: 0 / 472.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2778, allocations: 3.938 kB / 472.2 MB, free: 13.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.469e-05/0.2779, allocations: 0 / 472.2 MB, free: 13.34 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.01168/0.2896, allocations: 4.967 MB / 477.2 MB, free: 8.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.2896, allocations: 8.031 kB / 477.2 MB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008211/0.2905, allocations: 0.6283 MB / 477.8 MB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1477/0.4382, allocations: 12.3 MB / 490.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00923/0.4474, allocations: 3.651 MB / 493.7 MB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.4476, allocations: 193 kB / 493.9 MB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008538/0.4484, allocations: 267.8 kB / 494.2 MB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/0.4621, allocations: 8.834 MB / 0.4912 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.4622, allocations: 51.66 kB / 0.4913 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003403/0.4626, allocations: 127.9 kB / 0.4914 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003022/0.4656, allocations: 1.77 MB / 0.4931 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0135/0.4791, allocations: 7.51 MB / 0.5005 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04208/0.5212, allocations: 33.6 MB / 0.5333 GB, free: 1.656 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1774/0.6985, allocations: 3.096 MB / 0.5363 GB, free: 101.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00218/0.7007, allocations: 1.898 MB / 0.5382 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003048/0.701, allocations: 93.67 kB / 0.5382 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.7011, allocations: 55.06 kB / 0.5383 GB, free: 101 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.238e-06/0.7011, allocations: 2.406 kB / 0.5383 GB, free: 101 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04488/0.7459, allocations: 20.08 MB / 0.5579 GB, free: 89.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.746, allocations: 252.6 kB / 0.5582 GB, free: 89.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/0.7495, allocations: 4.139 MB / 0.5622 GB, free: 85.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.7497, allocations: 56.98 kB / 0.5622 GB, free: 85.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.7508, allocations: 2.915 MB / 0.5651 GB, free: 82.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004289/0.7512, allocations: 0.757 MB / 0.5658 GB, free: 82.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001054/0.7522, allocations: 1.108 MB / 0.5669 GB, free: 81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.7523, allocations: 308.7 kB / 0.5672 GB, free: 80.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.7544, allocations: 2.166 MB / 0.5693 GB, free: 78.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003032/0.7575, allocations: 5.507 MB / 0.5747 GB, free: 71.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005902/0.7634, allocations: 8.187 MB / 0.5827 GB, free: 61.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.385e-05/0.7634, allocations: 40 kB / 0.5827 GB, free: 61.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01186/0.7753, allocations: 8.647 MB / 0.5912 GB, free: 52.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.718e-05/0.7753, allocations: 56.94 kB / 0.5912 GB, free: 52.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-05/0.7754, allocations: 112 kB / 0.5913 GB, free: 52.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003566/0.779, allocations: 1.5 MB / 0.5928 GB, free: 51.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.7823, allocations: 1.228 MB / 0.594 GB, free: 50.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.7925, allocations: 9.738 MB / 0.6035 GB, free: 40.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003966/0.7965, allocations: 319.6 kB / 0.6038 GB, free: 39.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000624/0.7971, allocations: 328 kB / 0.6041 GB, free: 39.56 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.002333/0.7994, allocations: 1.946 MB / 0.606 GB, free: 37.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006075/0.8, allocations: 369.6 kB / 0.6064 GB, free: 37.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006388/0.8064, allocations: 4.123 MB / 0.6104 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.543e-05/0.8065, allocations: 27.59 kB / 0.6104 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.8065, allocations: 10.91 kB / 0.6104 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.519e-05/0.8065, allocations: 7.969 kB / 0.6105 GB, free: 33.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/0.8203, allocations: 8.788 MB / 0.619 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.8203, allocations: 0 / 0.619 GB, free: 24.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.8215, allocations: 271.5 kB / 0.6193 GB, free: 24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003397/0.8249, allocations: 1.351 MB / 0.6206 GB, free: 22.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.825, allocations: 37.06 kB / 0.6207 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009086/0.8341, allocations: 8.756 MB / 0.6292 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8341, allocations: 4 kB / 0.6292 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008756/0.8429, allocations: 7.044 MB / 0.6361 GB, free: 6.672 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009249/0.8438, allocations: 345.4 kB / 0.6364 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004229/0.8442, allocations: 35.98 kB / 0.6364 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.8457, allocations: 115.8 kB / 0.6366 GB, free: 6.184 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003021/0.846, allocations: 117.1 kB / 0.6367 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/0.8461, allocations: 48 kB / 0.6367 GB, free: 6.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002677/0.8488, allocations: 2.501 MB / 0.6392 GB, free: 3.539 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8488, allocations: 4 kB / 0.6392 GB, free: 3.535 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003523/0.8523, allocations: 0.9882 MB / 0.6401 GB, free: 2.547 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.01098/0.8633, allocations: 7.69 MB / 0.6476 GB, free: 10.81 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008536/0.8718, allocations: 5.15 MB / 0.6527 GB, free: 5.676 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.8718, allocations: 4 kB / 0.6527 GB, free: 5.672 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.8753, allocations: 1.935 MB / 0.6546 GB, free: 3.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/0.878, allocations: 0.4899 MB / 0.655 GB, free: 3.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07121/0.9492, allocations: 45.78 MB / 0.6997 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003461/0.9527, allocations: 2.539 MB / 0.7022 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003911/0.9566, allocations: 1.819 MB / 0.704 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002375/0.959, allocations: 1.757 MB / 0.7057 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.959, allocations: 0 / 0.7057 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2912/1.25, allocations: 78.4 MB / 0.7823 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.82/17.07, allocations: 6.922 kB / 0.7823 GB, free: 146.1 MB / 0.5294 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 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.mat","/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.6239858539775]