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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001613/0.001618, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 67.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2539, allocations: 50.54 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01212/0.266, allocations: 10.4 MB / 419.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008012/0.2741, allocations: 3.956 MB / 423.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001415/0.2756, allocations: 67.75 kB / 423.3 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004274/0.2799, allocations: 2.196 MB / 425.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004657/0.2846, allocations: 1.829 MB / 427.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001669/0.2863, allocations: 0.7408 MB / 428 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007534/0.2938, allocations: 5.252 MB / 433.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003992/0.2978, allocations: 2.881 MB / 436.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00251/0.3004, allocations: 1.476 MB / 437.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003035/0.3034, allocations: 2.025 MB / 439.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008381/0.3043, allocations: 300 kB / 439.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.3069, allocations: 1.174 MB / 441.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002486/0.3094, allocations: 1.816 MB / 442.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004445/0.3139, allocations: 2.183 MB / 445.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01094/0.3249, allocations: 6.993 MB / 452.1 MB, free: 6.008 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.3249, allocations: 4 kB / 452.1 MB, free: 6.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3249, allocations: 0 / 452.1 MB, free: 6.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001985/0.3251, allocations: 0 / 452.1 MB, free: 6.004 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.01436/0.3395, allocations: 5.038 MB / 457.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.3396, allocations: 8.031 kB / 457.2 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001372/0.3409, allocations: 0.6245 MB / 457.8 MB, free: 252 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1722/0.5131, allocations: 12.3 MB / 470.1 MB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00887/0.5221, allocations: 3.719 MB / 473.8 MB, free: 156 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.5223, allocations: 197.1 kB / 474 MB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009953/0.5233, allocations: 271.8 kB / 474.3 MB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01635/0.5397, allocations: 8.738 MB / 483 MB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001692/0.5399, allocations: 47.59 kB / 483 MB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005588/0.5405, allocations: 131.8 kB / 483.2 MB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.5438, allocations: 1.77 MB / 484.9 MB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.5588, allocations: 7.53 MB / 492.5 MB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04729/0.6061, allocations: 35.4 MB / 0.5155 GB, free: 8.344 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008438/0.6146, allocations: 3.691 MB / 0.5191 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002966/0.6176, allocations: 2.036 MB / 0.5211 GB, free: 2.469 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004385/0.618, allocations: 336.1 kB / 0.5214 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/0.6181, allocations: 59.5 kB / 0.5215 GB, free: 2.016 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.178e-06/0.6181, allocations: 0 / 0.5215 GB, free: 2.016 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2885/0.9066, allocations: 20.23 MB / 0.5412 GB, free: 124.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.9068, allocations: 255.8 kB / 0.5415 GB, free: 124.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/0.9125, allocations: 3.948 MB / 0.5453 GB, free: 123.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003965/0.9129, allocations: 55.2 kB / 0.5454 GB, free: 123.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/0.9143, allocations: 2.923 MB / 0.5482 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005946/0.9149, allocations: 0.7497 MB / 0.549 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.9161, allocations: 1.115 MB / 0.5501 GB, free: 120.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.165e-05/0.9162, allocations: 307.3 kB / 0.5503 GB, free: 120.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.9185, allocations: 2.163 MB / 0.5525 GB, free: 119.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003431/0.922, allocations: 5.402 MB / 0.5577 GB, free: 114.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006494/0.9285, allocations: 8.196 MB / 0.5657 GB, free: 107.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.178e-05/0.9286, allocations: 32 kB / 0.5658 GB, free: 107.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01229/0.9409, allocations: 8.671 MB / 0.5742 GB, free: 99.26 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.757e-05/0.9409, allocations: 58.81 kB / 0.5743 GB, free: 99.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-05/0.941, allocations: 115 kB / 0.5744 GB, free: 99.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003504/0.9445, allocations: 1.495 MB / 0.5759 GB, free: 97.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.9475, allocations: 1.224 MB / 0.5771 GB, free: 96.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.9577, allocations: 9.944 MB / 0.5868 GB, free: 86.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003985/0.9617, allocations: 320.5 kB / 0.5871 GB, free: 85.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000499/0.9622, allocations: 332 kB / 0.5874 GB, free: 85.66 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.002539/0.9647, allocations: 1.941 MB / 0.5893 GB, free: 83.78 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006537/0.9654, allocations: 373.5 kB / 0.5896 GB, free: 83.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006521/0.9719, allocations: 4.147 MB / 0.5937 GB, free: 79.26 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.113e-05/0.972, allocations: 20 kB / 0.5937 GB, free: 79.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/0.972, allocations: 8 kB / 0.5937 GB, free: 79.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/0.972, allocations: 11.91 kB / 0.5937 GB, free: 79.22 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.9848, allocations: 9.284 MB / 0.6028 GB, free: 69.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.9849, allocations: 4 kB / 0.6028 GB, free: 69.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.986, allocations: 263.6 kB / 0.6031 GB, free: 69.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003322/0.9893, allocations: 1.347 MB / 0.6044 GB, free: 68.31 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001709/0.9895, allocations: 28 kB / 0.6044 GB, free: 68.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009549/0.9991, allocations: 8.949 MB / 0.6131 GB, free: 59.19 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.9991, allocations: 4 kB / 0.6131 GB, free: 59.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009636/1.009, allocations: 7.056 MB / 0.62 GB, free: 52.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/1.01, allocations: 418.5 kB / 0.6204 GB, free: 51.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00044/1.01, allocations: 32.22 kB / 0.6205 GB, free: 51.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/1.012, allocations: 115.8 kB / 0.6206 GB, free: 51.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003421/1.012, allocations: 113.1 kB / 0.6207 GB, free: 51.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/1.012, allocations: 59.97 kB / 0.6207 GB, free: 51.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003196/1.016, allocations: 2.505 MB / 0.6232 GB, free: 48.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.22e-07/1.016, allocations: 0 / 0.6232 GB, free: 48.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004473/1.02, allocations: 0.996 MB / 0.6242 GB, free: 47.88 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.009268/1.029, allocations: 7.698 MB / 0.6317 GB, free: 40.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00701/1.036, allocations: 5.386 MB / 0.6369 GB, free: 34.77 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.309e-06/1.036, allocations: 0 / 0.6369 GB, free: 34.77 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00265/1.039, allocations: 2.077 MB / 0.639 GB, free: 32.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/1.042, allocations: 0.4909 MB / 0.6394 GB, free: 32.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06947/1.111, allocations: 45.76 MB / 0.6841 GB, free: 13.47 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005389/1.117, allocations: 3.089 MB / 0.6871 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00537/1.122, allocations: 1.819 MB / 0.6889 GB, free: 8.535 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003434/1.126, allocations: 1.749 MB / 0.6906 GB, free: 6.785 MB / 494.1 MB Notification: Performance of SimCode: time 1.653e-06/1.126, allocations: 0 / 0.6906 GB, free: 6.785 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4097/1.535, allocations: 74.54 MB / 0.7634 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.73/24.26, allocations: 15.19 kB / 0.7634 GB, free: 155.5 MB / 0.5137 GB (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 --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) 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) Reference file matches