Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_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.00168/0.00168, allocations: 114.4 kB / 17.73 MB, free: 5.355 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.001836/0.001836, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 47.94 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08891/0.09028, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1844/0.2747, allocations: 10.47 MB / 385.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008608/0.2833, allocations: 3.952 MB / 389.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002245/0.2857, allocations: 67.44 kB / 389.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004787/0.2905, allocations: 2.216 MB / 391.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006469/0.297, allocations: 1.901 MB / 393.3 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.2991, allocations: 0.738 MB / 394 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008541/0.3077, allocations: 4.846 MB / 398.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004335/0.3121, allocations: 2.891 MB / 401.7 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003277/0.3154, allocations: 1.496 MB / 403.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003716/0.3191, allocations: 2.048 MB / 405.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.3203, allocations: 301 kB / 405.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003032/0.3233, allocations: 1.188 MB / 406.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.3257, allocations: 1.865 MB / 408.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00347/0.3292, allocations: 2.216 MB / 410.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009677/0.3389, allocations: 7.062 MB / 417.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.339, allocations: 8 kB / 417.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.339, allocations: 0 / 417.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001907/0.3392, allocations: 0 / 417.9 MB, free: 4.496 MB / 334.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.0154/0.3546, allocations: 5.077 MB / 423 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.3547, allocations: 8.031 kB / 423 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001377/0.356, allocations: 0.6284 MB / 423.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1751/0.5312, allocations: 12.3 MB / 435.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009861/0.5411, allocations: 4.254 MB / 440.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.5413, allocations: 201 kB / 440.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009119/0.5422, allocations: 279.7 kB / 440.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/0.5569, allocations: 8.726 MB / 449.4 MB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/0.5571, allocations: 55.58 kB / 449.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00042/0.5575, allocations: 131.8 kB / 449.6 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0032/0.5607, allocations: 1.77 MB / 451.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01461/0.5753, allocations: 7.523 MB / 458.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04577/0.6212, allocations: 35.44 MB / 494.3 MB, free: 6.223 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008176/0.6294, allocations: 3.688 MB / 498 MB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002501/0.6319, allocations: 2.029 MB / 0.4883 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004305/0.6324, allocations: 324.2 kB / 0.4886 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.6324, allocations: 59.44 kB / 0.4887 GB, free: 15.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.409e-06/0.6324, allocations: 4 kB / 0.4887 GB, free: 15.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05678/0.6892, allocations: 20.38 MB / 0.5086 GB, free: 11.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001803/0.6895, allocations: 248.6 kB / 0.5088 GB, free: 11.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00645/0.6959, allocations: 3.98 MB / 0.5127 GB, free: 7.109 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004476/0.6964, allocations: 57.7 kB / 0.5127 GB, free: 7.047 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/0.6985, allocations: 2.928 MB / 0.5156 GB, free: 4.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001114/0.6996, allocations: 0.7519 MB / 0.5163 GB, free: 3.332 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001564/0.7012, allocations: 1.112 MB / 0.5174 GB, free: 2.211 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.7013, allocations: 301.1 kB / 0.5177 GB, free: 1.914 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003092/0.7044, allocations: 2.166 MB / 0.5198 GB, free: 15.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0053/0.7097, allocations: 5.406 MB / 0.5251 GB, free: 8.719 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009597/0.7194, allocations: 8.192 MB / 0.5331 GB, free: 14.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.28e-05/0.7195, allocations: 39.98 kB / 0.5331 GB, free: 14.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01731/0.7368, allocations: 8.667 MB / 0.5416 GB, free: 6.215 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.602e-05/0.737, allocations: 52.97 kB / 0.5417 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/0.7371, allocations: 112.3 kB / 0.5418 GB, free: 6.055 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004488/0.7416, allocations: 1.499 MB / 0.5432 GB, free: 4.551 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004376/0.746, allocations: 1.228 MB / 0.5444 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2296/0.9756, allocations: 9.931 MB / 0.5541 GB, free: 143 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004976/0.9807, allocations: 325.1 kB / 0.5544 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.9818, allocations: 330.7 kB / 0.5547 GB, free: 142.8 MB / 478.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.004225/0.986, allocations: 1.94 MB / 0.5566 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009937/0.987, allocations: 372.9 kB / 0.557 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008966/0.996, allocations: 4.156 MB / 0.5611 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-05/0.9961, allocations: 18.12 kB / 0.5611 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.319e-05/0.9961, allocations: 8.859 kB / 0.5611 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.621e-05/0.9962, allocations: 9.25 kB / 0.5611 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0217/1.018, allocations: 9.289 MB / 0.5702 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.497e-05/1.018, allocations: 5.094 kB / 0.5702 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/1.019, allocations: 269.7 kB / 0.5704 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003803/1.023, allocations: 1.352 MB / 0.5717 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003494/1.024, allocations: 29.62 kB / 0.5718 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/1.035, allocations: 8.941 MB / 0.5805 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/1.035, allocations: 8.703 kB / 0.5805 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/1.046, allocations: 7.064 MB / 0.5874 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/1.048, allocations: 0.714 MB / 0.5881 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000825/1.049, allocations: 35.47 kB / 0.5881 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/1.051, allocations: 114 kB / 0.5882 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004038/1.051, allocations: 116.2 kB / 0.5884 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/1.052, allocations: 51.11 kB / 0.5884 GB, free: 129.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003832/1.055, allocations: 2.527 MB / 0.5909 GB, free: 128 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.263e-06/1.055, allocations: 0 / 0.5909 GB, free: 128 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005046/1.06, allocations: 1.009 MB / 0.5919 GB, free: 127 MB / 478.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.00998/1.071, allocations: 7.708 MB / 0.5994 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007105/1.078, allocations: 5.381 MB / 0.6046 GB, free: 113.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/1.078, allocations: 0 / 0.6046 GB, free: 113.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002918/1.081, allocations: 2.088 MB / 0.6067 GB, free: 111.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003343/1.084, allocations: 0.4886 MB / 0.6072 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06264/1.147, allocations: 45.98 MB / 0.6521 GB, free: 60.53 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003594/1.15, allocations: 3.087 MB / 0.6551 GB, free: 57.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003829/1.154, allocations: 1.835 MB / 0.6569 GB, free: 55.57 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002774/1.157, allocations: 1.753 MB / 0.6586 GB, free: 53.81 MB / 478.1 MB Notification: Performance of SimCode: time 2.224e-06/1.157, allocations: 0 / 0.6586 GB, free: 53.81 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1109/1.268, allocations: 74.91 MB / 0.7317 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.44/23.7, allocations: 7.75 kB / 0.7317 GB, free: 10.8 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches