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.00169/0.00169, allocations: 116.7 kB / 20.43 MB, free: 1.457 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.002061/0.002061, allocations: 214 kB / 23.75 MB, free: 4.672 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.49/1.49, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.001892/0.001892, allocations: 59.91 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2578, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01276/0.2706, allocations: 10.47 MB / 441.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008906/0.2795, allocations: 4.011 MB / 445.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.2814, allocations: 79.56 kB / 445.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005089/0.2865, allocations: 2.246 MB / 448 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005077/0.2915, allocations: 1.879 MB / 449.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.2933, allocations: 0.7409 MB / 450.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007699/0.301, allocations: 5.268 MB / 455.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00366/0.3046, allocations: 2.401 MB / 458.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002795/0.3074, allocations: 1.503 MB / 459.8 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003668/0.3111, allocations: 2.208 MB / 462 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009252/0.312, allocations: 300 kB / 462.3 MB, free: 7.441 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002646/0.3147, allocations: 1.221 MB / 463.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002389/0.3171, allocations: 1.893 MB / 465.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003525/0.3206, allocations: 2.191 MB / 467.6 MB, free: 2.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009698/0.3303, allocations: 6.977 MB / 474.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.3303, allocations: 8 kB / 474.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3303, allocations: 0 / 474.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002213/0.3305, allocations: 0 / 474.6 MB, free: 11.11 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.01461/0.3451, allocations: 4.971 MB / 479.5 MB, free: 6.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3452, allocations: 11.97 kB / 479.6 MB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00116/0.3463, allocations: 0.6245 MB / 480.2 MB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1565/0.5029, allocations: 12.3 MB / 492.5 MB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008898/0.5117, allocations: 3.643 MB / 496.1 MB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.5119, allocations: 197 kB / 496.3 MB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007325/0.5127, allocations: 263.8 kB / 496.6 MB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01482/0.5275, allocations: 8.734 MB / 0.4935 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001377/0.5276, allocations: 55.53 kB / 0.4935 GB, free: 11.53 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003755/0.528, allocations: 127.9 kB / 0.4936 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003193/0.5312, allocations: 1.766 MB / 0.4954 GB, free: 9.637 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/0.5454, allocations: 7.53 MB / 0.5027 GB, free: 2.102 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.24/0.7854, allocations: 35.3 MB / 0.5372 GB, free: 92.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007368/0.7928, allocations: 3.12 MB / 0.5402 GB, free: 92.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/0.7948, allocations: 1.897 MB / 0.5421 GB, free: 92.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003068/0.7951, allocations: 98.97 kB / 0.5422 GB, free: 92.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.7952, allocations: 58.19 kB / 0.5422 GB, free: 92.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.258e-06/0.7952, allocations: 0 / 0.5422 GB, free: 92.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04494/0.8401, allocations: 20.01 MB / 0.5618 GB, free: 83.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.8402, allocations: 252.1 kB / 0.562 GB, free: 82.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004051/0.8442, allocations: 3.949 MB / 0.5659 GB, free: 79.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002292/0.8445, allocations: 57.14 kB / 0.5659 GB, free: 78.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.8456, allocations: 2.915 MB / 0.5688 GB, free: 76.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005105/0.8461, allocations: 0.7546 MB / 0.5695 GB, free: 75.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/0.8471, allocations: 1.108 MB / 0.5706 GB, free: 74.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.408e-05/0.8472, allocations: 306.9 kB / 0.5709 GB, free: 74.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/0.8494, allocations: 2.166 MB / 0.573 GB, free: 72.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003135/0.8526, allocations: 5.396 MB / 0.5783 GB, free: 65.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006239/0.8588, allocations: 8.203 MB / 0.5863 GB, free: 55.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.417e-05/0.8588, allocations: 35.94 kB / 0.5863 GB, free: 55.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01216/0.871, allocations: 8.646 MB / 0.5948 GB, free: 46.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.808e-05/0.8711, allocations: 56 kB / 0.5948 GB, free: 46.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.052e-05/0.8711, allocations: 112 kB / 0.5949 GB, free: 46.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0037/0.8748, allocations: 1.501 MB / 0.5964 GB, free: 45.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/0.8784, allocations: 1.224 MB / 0.5976 GB, free: 43.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.8888, allocations: 9.843 MB / 0.6072 GB, free: 33.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003942/0.8927, allocations: 323.6 kB / 0.6075 GB, free: 33.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005048/0.8932, allocations: 327.8 kB / 0.6078 GB, free: 33.29 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.8955, allocations: 1.935 MB / 0.6097 GB, free: 31.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005301/0.8961, allocations: 370.6 kB / 0.6101 GB, free: 30.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00646/0.9025, allocations: 4.127 MB / 0.6141 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/0.9025, allocations: 24 kB / 0.6141 GB, free: 26.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.9026, allocations: 4 kB / 0.6141 GB, free: 26.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.9026, allocations: 15.97 kB / 0.6141 GB, free: 26.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/0.9163, allocations: 9.221 MB / 0.6231 GB, free: 17.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.9163, allocations: 0 / 0.6231 GB, free: 17.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.9175, allocations: 271.5 kB / 0.6234 GB, free: 17.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00335/0.9209, allocations: 1.343 MB / 0.6247 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001604/0.921, allocations: 37.86 kB / 0.6247 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009647/0.9307, allocations: 8.848 MB / 0.6334 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.9307, allocations: 0 / 0.6334 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.9409, allocations: 7.046 MB / 0.6403 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/0.942, allocations: 353.3 kB / 0.6406 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004541/0.9425, allocations: 32 kB / 0.6406 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/0.9439, allocations: 123.4 kB / 0.6407 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/0.9443, allocations: 121 kB / 0.6409 GB, free: 15.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.9444, allocations: 47.98 kB / 0.6409 GB, free: 15.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003778/0.9482, allocations: 2.505 MB / 0.6434 GB, free: 12.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9482, allocations: 0 / 0.6434 GB, free: 12.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004283/0.9525, allocations: 0.9882 MB / 0.6443 GB, free: 11.72 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.01253/0.965, allocations: 7.686 MB / 0.6518 GB, free: 4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008883/0.9739, allocations: 5.154 MB / 0.6569 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.9739, allocations: 0 / 0.6569 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003669/0.9776, allocations: 1.934 MB / 0.6587 GB, free: 12.92 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002964/0.9805, allocations: 0.4925 MB / 0.6592 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08347/1.064, allocations: 45.79 MB / 0.7039 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004459/1.068, allocations: 3.083 MB / 0.707 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0044/1.073, allocations: 1.827 MB / 0.7087 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002728/1.076, allocations: 1.745 MB / 0.7104 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/1.076, allocations: 0 / 0.7104 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.316/1.392, allocations: 79.67 MB / 0.7882 GB, free: 166.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24/25.39, allocations: 4.75 kB / 0.7883 GB, free: 166.2 MB / 0.545 GB " [Timeout remaining time 634] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 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.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_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: 28.862576857907698]