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.001517/0.001517, allocations: 102.9 kB / 17.58 MB, free: 5.453 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.001846/0.001846, allocations: 187.9 kB / 18.51 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.338/2.338, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002273/0.002274, allocations: 52.61 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1477, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02263/0.1704, allocations: 10.45 MB / 337.8 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.1824, allocations: 3.961 MB / 341.8 MB, free: 5.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.1849, allocations: 67.75 kB / 341.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006935/0.1919, allocations: 2.2 MB / 344.1 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008394/0.2004, allocations: 1.86 MB / 345.9 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003159/0.2036, allocations: 0.7448 MB / 346.7 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.215, allocations: 4.85 MB / 351.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007514/0.2226, allocations: 2.897 MB / 354.4 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004905/0.2276, allocations: 1.495 MB / 355.9 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005916/0.2335, allocations: 2.041 MB / 358 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.2354, allocations: 300 kB / 358.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005043/0.2405, allocations: 1.182 MB / 359.4 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004398/0.245, allocations: 1.843 MB / 361.3 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006589/0.2516, allocations: 2.214 MB / 363.5 MB, free: 104 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01461/0.2663, allocations: 6.815 MB / 370.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.176e-05/0.2664, allocations: 4 kB / 370.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2664, allocations: 0 / 370.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000244/0.2666, allocations: 0 / 370.3 MB, free: 9.262 MB / 318.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.02828/0.2949, allocations: 4.955 MB / 375.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.543e-05/0.2951, allocations: 12.03 kB / 375.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003298/0.2984, allocations: 0.6206 MB / 375.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5167/0.8151, allocations: 12.28 MB / 388.2 MB, free: 49.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.8295, allocations: 4.182 MB / 392.4 MB, free: 46.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002757/0.8298, allocations: 200.8 kB / 392.5 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001594/0.8314, allocations: 269.6 kB / 392.8 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02023/0.8517, allocations: 8.731 MB / 401.5 MB, free: 39.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001782/0.8519, allocations: 55.48 kB / 401.6 MB, free: 39.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006341/0.8526, allocations: 129.5 kB / 401.7 MB, free: 38.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00448/0.8571, allocations: 1.767 MB / 403.5 MB, free: 37.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02066/0.8778, allocations: 7.531 MB / 411 MB, free: 29.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05867/0.9365, allocations: 35.53 MB / 446.6 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01455/0.9511, allocations: 3.7 MB / 450.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004493/0.9557, allocations: 2.029 MB / 452.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006553/0.9564, allocations: 328.1 kB / 452.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.477e-05/0.9564, allocations: 51.56 kB / 452.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=160): time 7.594e-06/0.9565, allocations: 0 / 452.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=190): time 0.09554/1.052, allocations: 20.15 MB / 472.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001975/1.052, allocations: 248.6 kB / 473 MB, free: 14.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01064/1.063, allocations: 3.983 MB / 477 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00062/1.064, allocations: 53.7 kB / 477.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003732/1.067, allocations: 2.827 MB / 479.9 MB, free: 7.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001612/1.069, allocations: 0.7172 MB / 480.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003447/1.073, allocations: 1.103 MB / 481.7 MB, free: 5.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/1.073, allocations: 301.1 kB / 482 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006546/1.079, allocations: 2.169 MB / 484.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01052/1.09, allocations: 5.406 MB / 489.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0185/1.108, allocations: 8.198 MB / 497.8 MB, free: 2.156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001434/1.109, allocations: 35.94 kB / 497.8 MB, free: 2.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.03131/1.14, allocations: 8.646 MB / 0.4946 GB, free: 9.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000209/1.14, allocations: 56.06 kB / 0.4947 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002957/1.141, allocations: 112 kB / 0.4948 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007225/1.148, allocations: 1.507 MB / 0.4962 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006975/1.155, allocations: 1.228 MB / 0.4974 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0248/1.18, allocations: 9.93 MB / 0.5071 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008523/1.188, allocations: 311.5 kB / 0.5074 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.19, allocations: 332 kB / 0.5077 GB, free: 11.84 MB / 414.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.007153/1.197, allocations: 1.943 MB / 0.5096 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001638/1.199, allocations: 359.3 kB / 0.51 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01579/1.214, allocations: 4.151 MB / 0.514 GB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.708e-05/1.215, allocations: 20 kB / 0.5141 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.464e-05/1.215, allocations: 11.94 kB / 0.5141 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.153e-05/1.215, allocations: 7.969 kB / 0.5141 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0346/1.249, allocations: 9.322 MB / 0.5232 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.431e-05/1.249, allocations: 4.281 kB / 0.5232 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002686/1.252, allocations: 275.6 kB / 0.5235 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007479/1.26, allocations: 1.351 MB / 0.5248 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004149/1.26, allocations: 35.92 kB / 0.5248 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02334/1.283, allocations: 8.947 MB / 0.5335 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/1.284, allocations: 4 kB / 0.5335 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2999/1.583, allocations: 7.031 MB / 0.5404 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002749/1.586, allocations: 0.701 MB / 0.5411 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001376/1.588, allocations: 29.58 kB / 0.5411 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003692/1.591, allocations: 122.8 kB / 0.5412 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007269/1.592, allocations: 109.3 kB / 0.5413 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003217/1.593, allocations: 50.38 kB / 0.5414 GB, free: 142.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.008746/1.601, allocations: 2.529 MB / 0.5439 GB, free: 141.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.052e-06/1.601, allocations: 3.312 kB / 0.5439 GB, free: 141.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009367/1.611, allocations: 1.006 MB / 0.5448 GB, free: 141.3 MB / 430.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.02082/1.632, allocations: 7.692 MB / 0.5524 GB, free: 138.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01671/1.648, allocations: 6.424 MB / 0.5586 GB, free: 136.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.648, allocations: 3.625 kB / 0.5586 GB, free: 136.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005878/1.654, allocations: 2.084 MB / 0.5607 GB, free: 135.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006053/1.66, allocations: 0.4885 MB / 0.5611 GB, free: 135.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1163/1.777, allocations: 51.84 MB / 0.6118 GB, free: 79.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007538/1.784, allocations: 3.099 MB / 0.6148 GB, free: 76.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0101/1.795, allocations: 1.823 MB / 0.6166 GB, free: 74.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004963/1.8, allocations: 1.761 MB / 0.6183 GB, free: 73.14 MB / 430.1 MB Notification: Performance of SimCode: time 4.559e-06/1.8, allocations: 0 / 0.6183 GB, free: 73.14 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4488/2.248, allocations: 78.26 MB / 0.6947 GB, free: 133.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.85/21.1, allocations: 6.453 kB / 0.6947 GB, free: 133.4 MB / 430.1 MB (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