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.001239/0.001239, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2214, allocations: 50.53 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01047/0.2319, allocations: 10.4 MB / 419.2 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006995/0.239, allocations: 3.964 MB / 423.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.2403, allocations: 67.75 kB / 423.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003752/0.2441, allocations: 2.196 MB / 425.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00407/0.2482, allocations: 1.824 MB / 427.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.2497, allocations: 0.7487 MB / 428 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006039/0.2557, allocations: 5.25 MB / 433.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002986/0.2587, allocations: 2.882 MB / 436.1 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002023/0.2608, allocations: 1.476 MB / 437.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002546/0.2633, allocations: 2.033 MB / 439.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006641/0.264, allocations: 300 kB / 439.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.2661, allocations: 1.182 MB / 441.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/0.268, allocations: 1.835 MB / 442.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00284/0.2708, allocations: 2.187 MB / 445.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007151/0.278, allocations: 6.961 MB / 452.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.278, allocations: 0 / 452.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.278, allocations: 0 / 452.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001942/0.2782, allocations: 4 kB / 452.1 MB, free: 6.059 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.01386/0.2921, allocations: 4.912 MB / 457 MB, free: 1.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.2922, allocations: 16.03 kB / 457 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001436/0.2936, allocations: 0.6244 MB / 457.6 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.187/0.4806, allocations: 12.28 MB / 469.9 MB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008981/0.4897, allocations: 3.698 MB / 473.6 MB, free: 380 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.4899, allocations: 201 kB / 473.8 MB, free: 176 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009332/0.4908, allocations: 267.8 kB / 474 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01423/0.505, allocations: 8.722 MB / 482.8 MB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001525/0.5052, allocations: 55.48 kB / 482.8 MB, free: 6.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006098/0.5059, allocations: 131.9 kB / 482.9 MB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003054/0.5089, allocations: 1.766 MB / 484.7 MB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/0.5225, allocations: 7.538 MB / 492.3 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04106/0.5636, allocations: 35.34 MB / 0.5152 GB, free: 8.617 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007783/0.5714, allocations: 3.69 MB / 0.5188 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/0.5739, allocations: 2.032 MB / 0.5208 GB, free: 2.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004463/0.5744, allocations: 336.1 kB / 0.5211 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/0.5744, allocations: 59.48 kB / 0.5212 GB, free: 2.297 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 5.71e-06/0.5744, allocations: 0 / 0.5212 GB, free: 2.297 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2243/0.7988, allocations: 20.02 MB / 0.5407 GB, free: 125.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.7989, allocations: 261.8 kB / 0.541 GB, free: 124.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004114/0.803, allocations: 3.941 MB / 0.5448 GB, free: 123.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002839/0.8033, allocations: 49.64 kB / 0.5449 GB, free: 123.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.8045, allocations: 2.811 MB / 0.5476 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005834/0.8051, allocations: 0.7259 MB / 0.5483 GB, free: 121.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.8063, allocations: 1.099 MB / 0.5494 GB, free: 120.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.7e-05/0.8063, allocations: 308.4 kB / 0.5497 GB, free: 120.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/0.8085, allocations: 2.166 MB / 0.5518 GB, free: 119.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003127/0.8116, allocations: 5.404 MB / 0.5571 GB, free: 114.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006039/0.8177, allocations: 8.206 MB / 0.5651 GB, free: 107.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.028e-05/0.8178, allocations: 32 kB / 0.5651 GB, free: 107.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01149/0.8293, allocations: 8.637 MB / 0.5736 GB, free: 99.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.781e-05/0.8294, allocations: 52.19 kB / 0.5736 GB, free: 99.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.866e-05/0.8294, allocations: 116 kB / 0.5737 GB, free: 99.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003419/0.8329, allocations: 1.501 MB / 0.5752 GB, free: 98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003181/0.8361, allocations: 1.224 MB / 0.5764 GB, free: 96.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009749/0.8458, allocations: 9.941 MB / 0.5861 GB, free: 86.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/0.8495, allocations: 319.4 kB / 0.5864 GB, free: 86.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000513/0.8501, allocations: 332 kB / 0.5867 GB, free: 86.06 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.002123/0.8522, allocations: 1.95 MB / 0.5886 GB, free: 84.11 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/0.8527, allocations: 351.4 kB / 0.589 GB, free: 83.76 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005935/0.8587, allocations: 4.143 MB / 0.593 GB, free: 79.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.408e-05/0.8587, allocations: 23.84 kB / 0.593 GB, free: 79.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.8587, allocations: 8.5 kB / 0.593 GB, free: 79.58 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.8587, allocations: 15.89 kB / 0.5931 GB, free: 79.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.8715, allocations: 9.282 MB / 0.6021 GB, free: 70.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.8716, allocations: 0 / 0.6021 GB, free: 70.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.8727, allocations: 263.6 kB / 0.6024 GB, free: 70 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003204/0.8759, allocations: 1.347 MB / 0.6037 GB, free: 68.65 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.8761, allocations: 32 kB / 0.6037 GB, free: 68.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008743/0.8848, allocations: 8.946 MB / 0.6125 GB, free: 59.53 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8849, allocations: 0 / 0.6125 GB, free: 59.53 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008132/0.893, allocations: 7.031 MB / 0.6193 GB, free: 52.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008235/0.8938, allocations: 408.5 kB / 0.6197 GB, free: 52.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003667/0.8942, allocations: 28 kB / 0.6197 GB, free: 52.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.8956, allocations: 119.8 kB / 0.6199 GB, free: 51.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002912/0.8959, allocations: 116.8 kB / 0.62 GB, free: 51.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.896, allocations: 44 kB / 0.62 GB, free: 51.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002604/0.8986, allocations: 2.513 MB / 0.6225 GB, free: 49.26 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8986, allocations: 0 / 0.6225 GB, free: 49.26 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003766/0.9024, allocations: 0.9908 MB / 0.6234 GB, free: 48.27 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.008346/0.9108, allocations: 7.69 MB / 0.6309 GB, free: 40.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006/0.9168, allocations: 5.36 MB / 0.6362 GB, free: 35.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.9168, allocations: 4 kB / 0.6362 GB, free: 35.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002466/0.9193, allocations: 2.083 MB / 0.6382 GB, free: 33.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/0.9216, allocations: 499.9 kB / 0.6387 GB, free: 32.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04887/0.9705, allocations: 45.59 MB / 0.6832 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002842/0.9733, allocations: 3.085 MB / 0.6862 GB, free: 10.96 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003546/0.9769, allocations: 1.819 MB / 0.688 GB, free: 9.133 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002034/0.979, allocations: 1.749 MB / 0.6897 GB, free: 7.383 MB / 494.1 MB Notification: Performance of SimCode: time 5.61e-07/0.979, allocations: 0 / 0.6897 GB, free: 7.383 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.879/2.858, allocations: 75.78 MB / 0.7637 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.72/33.58, allocations: 3.75 kB / 0.7637 GB, free: 155.3 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.0.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