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.001449/0.001449, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001617/0.001617, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.793 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 51.86 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2356, allocations: 53.35 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01075/0.2464, allocations: 9.08 MB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007437/0.2538, allocations: 3.77 MB / 444.7 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.2552, allocations: 83.56 kB / 444.8 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004372/0.2596, allocations: 2.149 MB / 446.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004682/0.2642, allocations: 1.887 MB / 448.8 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.2659, allocations: 0.7448 MB / 449.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007041/0.273, allocations: 5.263 MB / 454.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003349/0.2763, allocations: 2.408 MB / 457.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002388/0.2787, allocations: 1.503 MB / 458.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003276/0.282, allocations: 2.204 MB / 460.9 MB, free: 9.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008294/0.2828, allocations: 300 kB / 461.2 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002309/0.2851, allocations: 1.096 MB / 462.3 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002226/0.2873, allocations: 1.897 MB / 464.2 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002742/0.2901, allocations: 1.659 MB / 465.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008014/0.2981, allocations: 7.012 MB / 472.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2981, allocations: 3.938 kB / 472.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2981, allocations: 0 / 472.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001488/0.2983, allocations: 3.938 kB / 472.9 MB, free: 13.41 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.01227/0.3105, allocations: 4.966 MB / 477.9 MB, free: 8.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.3106, allocations: 12.03 kB / 477.9 MB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001147/0.3107, allocations: 85.34 kB / 478 MB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009894/0.3117, allocations: 0.6167 MB / 478.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1383/0.45, allocations: 12.3 MB / 490.9 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008684/0.4586, allocations: 3.643 MB / 494.5 MB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.4588, allocations: 205 kB / 494.7 MB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008944/0.4597, allocations: 267.8 kB / 495 MB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01479/0.4745, allocations: 8.83 MB / 0.492 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/0.4746, allocations: 51.58 kB / 0.4921 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003569/0.475, allocations: 131.9 kB / 0.4922 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003068/0.4781, allocations: 1.766 MB / 0.4939 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/0.4915, allocations: 7.526 MB / 0.5013 GB, free: 4.203 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04208/0.5336, allocations: 33.6 MB / 0.5341 GB, free: 1.629 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1885/0.7221, allocations: 3.111 MB / 0.5371 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/0.7242, allocations: 1.9 MB / 0.539 GB, free: 101.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/0.7245, allocations: 90.75 kB / 0.5391 GB, free: 101.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.7245, allocations: 50.89 kB / 0.5391 GB, free: 101.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.888e-06/0.7245, allocations: 0 / 0.5391 GB, free: 101.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04399/0.7685, allocations: 20.07 MB / 0.5587 GB, free: 89.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.364e-05/0.7685, allocations: 256.5 kB / 0.559 GB, free: 89.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003602/0.7721, allocations: 3.949 MB / 0.5628 GB, free: 85.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002044/0.7724, allocations: 53.7 kB / 0.5629 GB, free: 85.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.7734, allocations: 2.926 MB / 0.5657 GB, free: 83.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004876/0.7739, allocations: 0.7508 MB / 0.5665 GB, free: 82.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/0.775, allocations: 1.107 MB / 0.5675 GB, free: 81.26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.724e-05/0.775, allocations: 309.1 kB / 0.5678 GB, free: 80.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/0.7771, allocations: 2.166 MB / 0.57 GB, free: 78.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003067/0.7802, allocations: 5.503 MB / 0.5753 GB, free: 71.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005728/0.7859, allocations: 8.197 MB / 0.5833 GB, free: 61.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.927e-05/0.786, allocations: 32 kB / 0.5834 GB, free: 61.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01121/0.7972, allocations: 8.646 MB / 0.5918 GB, free: 53.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.72e-05/0.7973, allocations: 55.94 kB / 0.5919 GB, free: 53.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-05/0.7974, allocations: 120 kB / 0.592 GB, free: 53.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003539/0.8009, allocations: 1.5 MB / 0.5934 GB, free: 51.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003372/0.8043, allocations: 1.224 MB / 0.5946 GB, free: 50.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009946/0.8142, allocations: 9.732 MB / 0.6041 GB, free: 40.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003679/0.8179, allocations: 323.6 kB / 0.6044 GB, free: 40.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005615/0.8185, allocations: 332 kB / 0.6048 GB, free: 39.82 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.00215/0.8206, allocations: 1.937 MB / 0.6067 GB, free: 37.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005322/0.8211, allocations: 376.6 kB / 0.607 GB, free: 37.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006085/0.8272, allocations: 4.131 MB / 0.611 GB, free: 33.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/0.8272, allocations: 20 kB / 0.6111 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.8273, allocations: 8 kB / 0.6111 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.8273, allocations: 7.969 kB / 0.6111 GB, free: 33.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.8391, allocations: 8.798 MB / 0.6197 GB, free: 24.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.8391, allocations: 0.6562 kB / 0.6197 GB, free: 24.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.8402, allocations: 263.6 kB / 0.6199 GB, free: 24.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003181/0.8434, allocations: 1.355 MB / 0.6212 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001446/0.8436, allocations: 28 kB / 0.6213 GB, free: 22.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008748/0.8523, allocations: 8.758 MB / 0.6298 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.8523, allocations: 4 kB / 0.6298 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008306/0.8606, allocations: 7.045 MB / 0.6367 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000788/0.8614, allocations: 357.3 kB / 0.6371 GB, free: 6.574 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004357/0.8618, allocations: 32 kB / 0.6371 GB, free: 6.543 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.8632, allocations: 115.8 kB / 0.6372 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.8636, allocations: 124.7 kB / 0.6373 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.8637, allocations: 51.98 kB / 0.6374 GB, free: 6.258 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002767/0.8665, allocations: 2.501 MB / 0.6398 GB, free: 3.777 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8665, allocations: 0 / 0.6398 GB, free: 3.777 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003719/0.8702, allocations: 0.9921 MB / 0.6408 GB, free: 2.785 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.01092/0.8811, allocations: 7.667 MB / 0.6483 GB, free: 11.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008465/0.8896, allocations: 5.167 MB / 0.6533 GB, free: 5.922 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8896, allocations: 0 / 0.6533 GB, free: 5.922 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003431/0.893, allocations: 1.937 MB / 0.6552 GB, free: 3.973 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/0.8958, allocations: 498.2 kB / 0.6557 GB, free: 3.492 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07253/0.9684, allocations: 45.77 MB / 0.7004 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003471/0.9718, allocations: 2.543 MB / 0.7029 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003947/0.9758, allocations: 1.823 MB / 0.7046 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002595/0.9784, allocations: 1.745 MB / 0.7063 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of SimCode: time 1.002e-06/0.9784, allocations: 0 / 0.7063 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.29/1.268, allocations: 77.98 MB / 0.7825 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.83/24.1, allocations: 7.516 kB / 0.7825 GB, free: 146.9 MB / 0.5294 GB " [Timeout remaining time 636] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 28.378171075019054]