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.001371/0.001371, allocations: 117.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001632/0.001632, allocations: 200.7 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2507, allocations: 50.53 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01002/0.2607, allocations: 10.42 MB / 419.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006937/0.2677, allocations: 3.959 MB / 423.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.2688, allocations: 63.81 kB / 423.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003609/0.2725, allocations: 2.2 MB / 425.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003799/0.2763, allocations: 1.872 MB / 427.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.2777, allocations: 0.7487 MB / 428 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005939/0.2836, allocations: 5.252 MB / 433.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002922/0.2866, allocations: 2.877 MB / 436.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.2885, allocations: 1.48 MB / 437.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.2909, allocations: 2.037 MB / 439.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007176/0.2917, allocations: 300 kB / 439.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.2937, allocations: 1.178 MB / 441.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001728/0.2954, allocations: 1.835 MB / 443 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002387/0.2978, allocations: 2.183 MB / 445.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007038/0.3049, allocations: 6.993 MB / 452.1 MB, free: 5.996 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3049, allocations: 0 / 452.1 MB, free: 5.996 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3049, allocations: 0 / 452.1 MB, free: 5.996 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000141/0.3051, allocations: 0 / 452.1 MB, free: 5.996 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.01156/0.3166, allocations: 5.042 MB / 457.2 MB, free: 0.875 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3167, allocations: 12.03 kB / 457.2 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007883/0.3175, allocations: 0.6245 MB / 457.8 MB, free: 236 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1664/0.4839, allocations: 12.3 MB / 470.1 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009433/0.4934, allocations: 3.717 MB / 473.8 MB, free: 144 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001882/0.4936, allocations: 197.1 kB / 474 MB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001099/0.4947, allocations: 279.6 kB / 474.3 MB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01461/0.5094, allocations: 8.738 MB / 483 MB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001724/0.5096, allocations: 39.7 kB / 483.1 MB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005909/0.5102, allocations: 127.9 kB / 483.2 MB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003033/0.5132, allocations: 1.77 MB / 485 MB, free: 4.344 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/0.5267, allocations: 7.53 MB / 492.5 MB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04192/0.5686, allocations: 35.39 MB / 0.5155 GB, free: 8.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00788/0.5766, allocations: 3.704 MB / 0.5191 GB, free: 4.492 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002453/0.5791, allocations: 2.031 MB / 0.5211 GB, free: 2.453 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004375/0.5795, allocations: 332.2 kB / 0.5214 GB, free: 2.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.5796, allocations: 55.56 kB / 0.5215 GB, free: 2.008 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.849e-06/0.5796, allocations: 0 / 0.5215 GB, free: 2.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2522/0.8318, allocations: 20.24 MB / 0.5413 GB, free: 125 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.8319, allocations: 249.8 kB / 0.5415 GB, free: 124.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004504/0.8364, allocations: 3.948 MB / 0.5453 GB, free: 123.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002908/0.8367, allocations: 53.88 kB / 0.5454 GB, free: 123.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/0.838, allocations: 2.929 MB / 0.5483 GB, free: 122 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005972/0.8386, allocations: 0.7422 MB / 0.549 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/0.8398, allocations: 1.116 MB / 0.5501 GB, free: 121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.941e-05/0.8398, allocations: 305.1 kB / 0.5504 GB, free: 120.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/0.8421, allocations: 2.169 MB / 0.5525 GB, free: 120 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003506/0.8456, allocations: 5.406 MB / 0.5578 GB, free: 114.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006456/0.8521, allocations: 8.19 MB / 0.5658 GB, free: 107.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-05/0.8521, allocations: 36.88 kB / 0.5658 GB, free: 107.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01187/0.864, allocations: 8.67 MB / 0.5743 GB, free: 99.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.447e-05/0.8641, allocations: 56 kB / 0.5743 GB, free: 99.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-05/0.8642, allocations: 112 kB / 0.5744 GB, free: 99.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003535/0.8677, allocations: 1.499 MB / 0.5759 GB, free: 97.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003102/0.8708, allocations: 1.224 MB / 0.5771 GB, free: 96.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.8812, allocations: 9.955 MB / 0.5868 GB, free: 86.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004071/0.8853, allocations: 319.7 kB / 0.5871 GB, free: 86.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003858/0.8857, allocations: 332 kB / 0.5874 GB, free: 85.7 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.002548/0.8883, allocations: 1.938 MB / 0.5893 GB, free: 83.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005493/0.8888, allocations: 381.5 kB / 0.5897 GB, free: 83.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006202/0.8951, allocations: 4.139 MB / 0.5937 GB, free: 79.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/0.8951, allocations: 23.83 kB / 0.5937 GB, free: 79.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.8951, allocations: 8 kB / 0.5938 GB, free: 79.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.8951, allocations: 19.91 kB / 0.5938 GB, free: 79.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/0.9082, allocations: 9.267 MB / 0.6028 GB, free: 69.97 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.9082, allocations: 0 / 0.6028 GB, free: 69.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.9094, allocations: 275.5 kB / 0.6031 GB, free: 69.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003267/0.9127, allocations: 1.339 MB / 0.6044 GB, free: 68.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.9128, allocations: 35.98 kB / 0.6044 GB, free: 68.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00943/0.9222, allocations: 8.952 MB / 0.6132 GB, free: 59.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.9223, allocations: 0 / 0.6132 GB, free: 59.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008711/0.931, allocations: 7.052 MB / 0.6201 GB, free: 52.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/0.932, allocations: 422.5 kB / 0.6205 GB, free: 51.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004254/0.9325, allocations: 32 kB / 0.6205 GB, free: 51.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.9339, allocations: 123.8 kB / 0.6206 GB, free: 51.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002888/0.9342, allocations: 105.2 kB / 0.6207 GB, free: 51.47 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/0.9343, allocations: 53.03 kB / 0.6208 GB, free: 51.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002878/0.9372, allocations: 2.501 MB / 0.6232 GB, free: 48.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9372, allocations: 0 / 0.6232 GB, free: 48.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003817/0.941, allocations: 0.9921 MB / 0.6242 GB, free: 47.95 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.008944/0.95, allocations: 7.714 MB / 0.6317 GB, free: 40.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006809/0.9568, allocations: 5.386 MB / 0.637 GB, free: 34.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.9568, allocations: 0 / 0.637 GB, free: 34.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.9595, allocations: 2.077 MB / 0.639 GB, free: 32.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002491/0.962, allocations: 496.9 kB / 0.6395 GB, free: 32.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05669/1.019, allocations: 45.75 MB / 0.6841 GB, free: 13.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003156/1.022, allocations: 3.085 MB / 0.6872 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003711/1.026, allocations: 1.819 MB / 0.6889 GB, free: 8.586 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002155/1.028, allocations: 1.757 MB / 0.6906 GB, free: 6.828 MB / 494.1 MB Notification: Performance of SimCode: time 1.212e-06/1.028, allocations: 0 / 0.6906 GB, free: 6.828 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3357/1.364, allocations: 74.54 MB / 0.7634 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.73/23.1, allocations: 6.062 kB / 0.7634 GB, free: 155.4 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.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