Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.DoublePendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_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.001037/0.001037, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001105/0.001105, allocations: 195.6 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1567/0.1567, allocations: 9.086 MB / 299.2 MB, free: 1.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 55.91 kB / 361.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09728, allocations: 51.43 MB / 413 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.1878/0.2851, allocations: 30.91 MB / 443.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01177/0.297, allocations: 6.765 MB / 450.6 MB, free: 21.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005304/0.3023, allocations: 113.2 kB / 450.7 MB, free: 21.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.3034, allocations: 307.3 kB / 451 MB, free: 21.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003307/0.3067, allocations: 1.319 MB / 452.4 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005506/0.3073, allocations: 109.8 kB / 452.5 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002939/0.3102, allocations: 2.569 MB / 455 MB, free: 19.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.3114, allocations: 0.9283 MB / 456 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00108/0.3124, allocations: 0.9056 MB / 456.9 MB, free: 19.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.3139, allocations: 1.432 MB / 458.3 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002763/0.3142, allocations: 230.9 kB / 458.5 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.3153, allocations: 0.8368 MB / 459.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007416/0.3161, allocations: 1.235 MB / 460.6 MB, free: 17.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009809/0.317, allocations: 1.591 MB / 462.2 MB, free: 16.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003633/0.3207, allocations: 4.816 MB / 467 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3207, allocations: 0 / 467 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3207, allocations: 4 kB / 467 MB, free: 14.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.687e-05/0.3208, allocations: 0 / 467 MB, free: 14.84 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.009768/0.3306, allocations: 4.356 MB / 471.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.3306, allocations: 9.719 kB / 471.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006806/0.3313, allocations: 0.5467 MB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00628/0.3376, allocations: 1.761 MB / 473.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002497/0.3401, allocations: 1.356 MB / 475 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.3403, allocations: 154.7 kB / 475.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004606/0.3407, allocations: 200.2 kB / 475.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.3548, allocations: 8.252 MB / 483.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.147e-05/0.3549, allocations: 26.81 kB / 483.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002908/0.3552, allocations: 93.95 kB / 483.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00306/0.3582, allocations: 1.904 MB / 485.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/0.3721, allocations: 7.421 MB / 493.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03807/0.4102, allocations: 25.61 MB / 0.5065 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006809/0.4171, allocations: 2.614 MB / 0.5091 GB, free: 7.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.4188, allocations: 0.9079 MB / 0.51 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008533/0.4273, allocations: 5.101 MB / 0.515 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.4274, allocations: 48.53 kB / 0.515 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.007e-06/0.4274, allocations: 0 / 0.515 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01453/0.4419, allocations: 5.46 MB / 0.5203 GB, free: 11.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.182e-05/0.4421, allocations: 68.72 kB / 0.5204 GB, free: 11.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005017/0.4471, allocations: 2.618 MB / 0.523 GB, free: 8.496 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003008/0.4474, allocations: 49.69 kB / 0.523 GB, free: 8.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001965/0.4494, allocations: 2.101 MB / 0.5251 GB, free: 6.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008802/0.4503, allocations: 0.6398 MB / 0.5257 GB, free: 5.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/0.4521, allocations: 0.8258 MB / 0.5265 GB, free: 4.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.4522, allocations: 301.1 kB / 0.5268 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/0.4548, allocations: 1.374 MB / 0.5281 GB, free: 3.141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004356/0.4592, allocations: 3.633 MB / 0.5317 GB, free: 14.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007027/0.4663, allocations: 5.42 MB / 0.537 GB, free: 7.859 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.103e-05/0.4664, allocations: 23.94 kB / 0.537 GB, free: 7.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01065/0.4771, allocations: 5.227 MB / 0.5421 GB, free: 2.609 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.939e-05/0.4772, allocations: 39.94 kB / 0.5421 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001323/0.4773, allocations: 80.16 kB / 0.5422 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.4784, allocations: 358.1 kB / 0.5425 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003371/0.4818, allocations: 0.9201 MB / 0.5434 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005541/0.4874, allocations: 4.169 MB / 0.5475 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003093/0.4905, allocations: 199.9 kB / 0.5477 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007027/0.4913, allocations: 244 kB / 0.5479 GB, free: 12.47 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 493 * Array equations: 4 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003055/0.4943, allocations: 1.617 MB / 0.5495 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005222/0.4949, allocations: 229 kB / 0.5497 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004357/0.4992, allocations: 2.338 MB / 0.552 GB, free: 8.254 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001133/0.4994, allocations: 31.97 kB / 0.552 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.4994, allocations: 4 kB / 0.5521 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.4994, allocations: 3.984 kB / 0.5521 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.512, allocations: 6.501 MB / 0.5584 GB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.512, allocations: 4.062 kB / 0.5584 GB, free: 1.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009674/0.513, allocations: 243.7 kB / 0.5586 GB, free: 1.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006975/0.5137, allocations: 260.9 kB / 0.5589 GB, free: 1.074 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.5139, allocations: 39.97 kB / 0.5589 GB, free: 1.035 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004291/0.5182, allocations: 3.415 MB / 0.5623 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/0.5182, allocations: 4 kB / 0.5623 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005639/0.5238, allocations: 3.605 MB / 0.5658 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007736/0.5247, allocations: 302.2 kB / 0.5661 GB, free: 9.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005654/0.5252, allocations: 35.98 kB / 0.5661 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.5264, allocations: 79.91 kB / 0.5662 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.5267, allocations: 101.1 kB / 0.5663 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.5268, allocations: 51.98 kB / 0.5663 GB, free: 9.227 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003301/0.5301, allocations: 1.68 MB / 0.568 GB, free: 7.531 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5301, allocations: 4 kB / 0.568 GB, free: 7.527 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003611/0.5338, allocations: 0.7148 MB / 0.5687 GB, free: 6.812 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * Array equations: 4 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006488/0.5403, allocations: 4.253 MB / 0.5728 GB, free: 2.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1689/0.7092, allocations: 5.056 MB / 0.5778 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.7092, allocations: 2.656 kB / 0.5778 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.7107, allocations: 1.169 MB / 0.5789 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.7127, allocations: 395.3 kB / 0.5793 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03957/0.7523, allocations: 33.23 MB / 0.6117 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003478/0.7558, allocations: 2.622 MB / 0.6143 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003028/0.7588, allocations: 1.27 MB / 0.6155 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/0.7603, allocations: 1.353 MB / 0.6169 GB, free: 103.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.7603, allocations: 3.938 kB / 0.6169 GB, free: 103.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07246/0.8328, allocations: 50.27 MB / 0.666 GB, free: 69.11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001343/0.8329, allocations: 208.1 kB / 0.6662 GB, free: 68.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.265/4.098, allocations: 3.938 kB / 0.6662 GB, free: 68.85 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_DoublePendulum_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)