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.001299/0.001299, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2889, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0121/0.3011, allocations: 10.39 MB / 419.2 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008532/0.3097, allocations: 3.964 MB / 423.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.3111, allocations: 63.81 kB / 423.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00421/0.3154, allocations: 2.207 MB / 425.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004859/0.3203, allocations: 1.828 MB / 427.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.3221, allocations: 0.7409 MB / 428 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007536/0.3297, allocations: 5.249 MB / 433.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004513/0.3342, allocations: 2.885 MB / 436.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002879/0.3371, allocations: 1.464 MB / 437.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003682/0.3408, allocations: 2.033 MB / 439.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001119/0.342, allocations: 300 kB / 439.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002729/0.3447, allocations: 1.163 MB / 441.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002124/0.3469, allocations: 1.824 MB / 442.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002812/0.3497, allocations: 2.195 MB / 445.1 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009321/0.359, allocations: 6.985 MB / 452.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3591, allocations: 0 / 452.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3591, allocations: 0 / 452.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000202/0.3593, allocations: 0 / 452.1 MB, free: 6.055 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.01443/0.3737, allocations: 5.046 MB / 457.1 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.3738, allocations: 8.031 kB / 457.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001159/0.375, allocations: 0.6206 MB / 457.7 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1506/0.5256, allocations: 12.3 MB / 470 MB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009328/0.5349, allocations: 3.719 MB / 473.7 MB, free: 204 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/0.5352, allocations: 197 kB / 473.9 MB, free: 4 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/0.5363, allocations: 263.9 kB / 474.2 MB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01697/0.5533, allocations: 8.745 MB / 482.9 MB, free: 6.348 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001746/0.5535, allocations: 47.59 kB / 483 MB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007183/0.5543, allocations: 127.9 kB / 483.1 MB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00337/0.5577, allocations: 1.766 MB / 484.9 MB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.5736, allocations: 7.534 MB / 492.4 MB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04619/0.6198, allocations: 35.4 MB / 0.5154 GB, free: 8.391 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008554/0.6284, allocations: 3.695 MB / 0.5191 GB, free: 4.555 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002838/0.6313, allocations: 2.033 MB / 0.521 GB, free: 2.512 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004618/0.6318, allocations: 332.1 kB / 0.5214 GB, free: 2.129 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.335e-05/0.6318, allocations: 59.5 kB / 0.5214 GB, free: 2.062 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.599e-06/0.6318, allocations: 4 kB / 0.5214 GB, free: 2.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2542/0.886, allocations: 20.22 MB / 0.5412 GB, free: 125 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.72e-05/0.8861, allocations: 251.2 kB / 0.5414 GB, free: 124.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004598/0.8908, allocations: 3.953 MB / 0.5453 GB, free: 123.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003302/0.8911, allocations: 49.52 kB / 0.5453 GB, free: 123.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.8924, allocations: 2.93 MB / 0.5482 GB, free: 122 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000587/0.893, allocations: 0.7462 MB / 0.5489 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.8941, allocations: 1.116 MB / 0.55 GB, free: 121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.522e-05/0.8941, allocations: 305.1 kB / 0.5503 GB, free: 120.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0023/0.8964, allocations: 2.166 MB / 0.5524 GB, free: 120 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003319/0.8998, allocations: 5.401 MB / 0.5577 GB, free: 114.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/0.906, allocations: 8.199 MB / 0.5657 GB, free: 107.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-05/0.9061, allocations: 32 kB / 0.5657 GB, free: 107.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01145/0.9176, allocations: 8.668 MB / 0.5742 GB, free: 99.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.245e-05/0.9176, allocations: 52 kB / 0.5742 GB, free: 99.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.38e-05/0.9177, allocations: 112 kB / 0.5743 GB, free: 99.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003405/0.9211, allocations: 1.495 MB / 0.5758 GB, free: 97.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003162/0.9243, allocations: 1.232 MB / 0.577 GB, free: 96.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.9345, allocations: 9.936 MB / 0.5867 GB, free: 86.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003909/0.9384, allocations: 327.5 kB / 0.587 GB, free: 86.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005747/0.939, allocations: 328 kB / 0.5873 GB, free: 85.75 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.002427/0.9415, allocations: 1.942 MB / 0.5892 GB, free: 83.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006082/0.9421, allocations: 377.5 kB / 0.5896 GB, free: 83.49 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006414/0.9485, allocations: 4.147 MB / 0.5936 GB, free: 79.33 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.793e-05/0.9486, allocations: 27.84 kB / 0.5937 GB, free: 79.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.9486, allocations: 4 kB / 0.5937 GB, free: 79.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/0.9486, allocations: 15.91 kB / 0.5937 GB, free: 79.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/0.9623, allocations: 9.274 MB / 0.6027 GB, free: 70 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/0.9623, allocations: 4.062 kB / 0.6027 GB, free: 70 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.9635, allocations: 267.6 kB / 0.603 GB, free: 69.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003248/0.9667, allocations: 1.347 MB / 0.6043 GB, free: 68.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.9669, allocations: 35.98 kB / 0.6043 GB, free: 68.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.9773, allocations: 8.943 MB / 0.6131 GB, free: 59.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.9774, allocations: 0 / 0.6131 GB, free: 59.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009161/0.9865, allocations: 7.06 MB / 0.62 GB, free: 52.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000988/0.9875, allocations: 422.5 kB / 0.6204 GB, free: 51.75 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003874/0.9879, allocations: 28 kB / 0.6204 GB, free: 51.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/0.9894, allocations: 123.8 kB / 0.6205 GB, free: 51.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003241/0.9898, allocations: 112.8 kB / 0.6206 GB, free: 51.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/0.9899, allocations: 48 kB / 0.6207 GB, free: 51.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003297/0.9932, allocations: 2.509 MB / 0.6231 GB, free: 48.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9932, allocations: 0 / 0.6231 GB, free: 48.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004405/0.9976, allocations: 0.9921 MB / 0.6241 GB, free: 47.96 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.009172/1.007, allocations: 7.702 MB / 0.6316 GB, free: 40.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006741/1.014, allocations: 5.374 MB / 0.6369 GB, free: 34.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/1.014, allocations: 0 / 0.6369 GB, free: 34.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002728/1.016, allocations: 2.094 MB / 0.6389 GB, free: 32.76 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/1.019, allocations: 498.8 kB / 0.6394 GB, free: 32.28 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06379/1.083, allocations: 45.74 MB / 0.6841 GB, free: 13.55 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004232/1.087, allocations: 3.097 MB / 0.6871 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004552/1.092, allocations: 1.819 MB / 0.6889 GB, free: 8.609 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002758/1.095, allocations: 1.745 MB / 0.6906 GB, free: 6.863 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/1.095, allocations: 0 / 0.6906 GB, free: 6.863 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3468/1.441, allocations: 74.55 MB / 0.7634 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.21/25.65, allocations: 7.812 kB / 0.7634 GB, free: 155.6 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/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