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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 115.1 kB / 17.07 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009684/0.0009685, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2412, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.009992/0.2513, allocations: 10.43 MB / 410.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006959/0.2583, allocations: 3.948 MB / 414.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.2598, allocations: 63.81 kB / 414.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004002/0.2639, allocations: 2.207 MB / 416.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004581/0.2685, allocations: 1.856 MB / 418.7 MB, free: 6.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.2702, allocations: 0.7448 MB / 419.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007478/0.2777, allocations: 5.174 MB / 424.7 MB, free: 308 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00535/0.2831, allocations: 2.874 MB / 427.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003734/0.2869, allocations: 1.495 MB / 429 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00428/0.2912, allocations: 2.033 MB / 431.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001747/0.293, allocations: 300 kB / 431.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004003/0.297, allocations: 1.205 MB / 432.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003272/0.3004, allocations: 1.843 MB / 434.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004979/0.3054, allocations: 2.206 MB / 436.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.3169, allocations: 7.016 MB / 443.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.317, allocations: 0 / 443.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.317, allocations: 0 / 443.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003202/0.3173, allocations: 0 / 443.6 MB, free: 13.23 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.01698/0.3343, allocations: 4.916 MB / 448.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3344, allocations: 16.02 kB / 448.6 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001543/0.3359, allocations: 0.6244 MB / 449.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1672/0.5032, allocations: 12.28 MB / 461.5 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0088/0.512, allocations: 3.92 MB / 465.4 MB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.5122, allocations: 197 kB / 465.6 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008973/0.5131, allocations: 267.7 kB / 465.8 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/0.5264, allocations: 8.734 MB / 474.6 MB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.5265, allocations: 51.5 kB / 474.6 MB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000644/0.5272, allocations: 123.9 kB / 474.7 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002951/0.5302, allocations: 1.77 MB / 476.5 MB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/0.5433, allocations: 7.534 MB / 484 MB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.5814, allocations: 35.34 MB / 0.5072 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007327/0.5888, allocations: 3.696 MB / 0.5108 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002253/0.5911, allocations: 2.029 MB / 0.5128 GB, free: 9.684 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003983/0.5915, allocations: 328.5 kB / 0.5131 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/0.5915, allocations: 55.5 kB / 0.5132 GB, free: 9.242 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.328e-06/0.5915, allocations: 0 / 0.5132 GB, free: 9.242 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04869/0.6402, allocations: 20.04 MB / 0.5327 GB, free: 5.078 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.6404, allocations: 256.6 kB / 0.533 GB, free: 4.773 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004592/0.645, allocations: 3.942 MB / 0.5368 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002779/0.6453, allocations: 57.7 kB / 0.5369 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1996/0.8449, allocations: 2.807 MB / 0.5396 GB, free: 131.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008348/0.8457, allocations: 0.7212 MB / 0.5403 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001739/0.8475, allocations: 1.105 MB / 0.5414 GB, free: 130.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.762e-05/0.8475, allocations: 301.8 kB / 0.5417 GB, free: 130.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002572/0.8501, allocations: 2.168 MB / 0.5438 GB, free: 129.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/0.8535, allocations: 5.403 MB / 0.5491 GB, free: 124.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006091/0.8596, allocations: 8.201 MB / 0.5571 GB, free: 117.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.656e-05/0.8597, allocations: 31.31 kB / 0.5571 GB, free: 117.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01223/0.8719, allocations: 8.641 MB / 0.5656 GB, free: 112.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.08e-05/0.872, allocations: 52 kB / 0.5656 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/0.8721, allocations: 112 kB / 0.5657 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003545/0.8757, allocations: 1.503 MB / 0.5672 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003296/0.879, allocations: 1.232 MB / 0.5684 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009818/0.8888, allocations: 9.933 MB / 0.5781 GB, free: 99.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003723/0.8926, allocations: 320.6 kB / 0.5784 GB, free: 99.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007042/0.8933, allocations: 328 kB / 0.5787 GB, free: 98.95 MB / 462.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.00256/0.8959, allocations: 1.947 MB / 0.5806 GB, free: 97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007303/0.8966, allocations: 355.4 kB / 0.581 GB, free: 96.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006379/0.903, allocations: 4.143 MB / 0.585 GB, free: 92.49 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.215e-05/0.9031, allocations: 27.94 kB / 0.585 GB, free: 92.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.9031, allocations: 8 kB / 0.585 GB, free: 92.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.9031, allocations: 7.969 kB / 0.585 GB, free: 92.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/0.9162, allocations: 9.278 MB / 0.5941 GB, free: 83.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.9162, allocations: 4 kB / 0.5941 GB, free: 83.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.9173, allocations: 263.6 kB / 0.5944 GB, free: 82.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003182/0.9205, allocations: 1.351 MB / 0.5957 GB, free: 81.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.9207, allocations: 31.98 kB / 0.5957 GB, free: 81.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008886/0.9296, allocations: 8.938 MB / 0.6044 GB, free: 72.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.9296, allocations: 4 kB / 0.6044 GB, free: 72.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008121/0.9377, allocations: 7.039 MB / 0.6113 GB, free: 65.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000699/0.9384, allocations: 408.5 kB / 0.6117 GB, free: 64.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003404/0.9388, allocations: 32 kB / 0.6117 GB, free: 64.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.9401, allocations: 113.7 kB / 0.6119 GB, free: 64.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.9404, allocations: 116.9 kB / 0.612 GB, free: 64.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.9405, allocations: 52.22 kB / 0.612 GB, free: 64.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002501/0.943, allocations: 2.51 MB / 0.6145 GB, free: 62.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.943, allocations: 0 / 0.6145 GB, free: 62.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003384/0.9464, allocations: 1.003 MB / 0.6154 GB, free: 61.09 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.00828/0.9547, allocations: 7.695 MB / 0.623 GB, free: 53.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005917/0.9607, allocations: 5.364 MB / 0.6282 GB, free: 48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.9607, allocations: 4.562 kB / 0.6282 GB, free: 47.99 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002571/0.9633, allocations: 2.09 MB / 0.6302 GB, free: 45.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.9657, allocations: 491.5 kB / 0.6307 GB, free: 45.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04777/1.014, allocations: 45.62 MB / 0.6753 GB, free: 10.82 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003479/1.017, allocations: 3.091 MB / 0.6783 GB, free: 7.703 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003717/1.021, allocations: 1.823 MB / 0.6801 GB, free: 5.871 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002173/1.023, allocations: 1.753 MB / 0.6818 GB, free: 4.117 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/1.023, allocations: 0 / 0.6818 GB, free: 4.117 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.062/4.085, allocations: 75.86 MB / 0.7559 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.19/32.27, allocations: 0 / 0.7559 GB, free: 166.6 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/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) Reference file matches