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.001174/0.001174, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001351/0.001351, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1552/0.1552, allocations: 9.104 MB / 299 MB, free: 1.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 55.91 kB / 361.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1149, allocations: 51.44 MB / 412.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.1969/0.3118, allocations: 30.91 MB / 443.7 MB, free: 26.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.3264, allocations: 6.785 MB / 450.5 MB, free: 21.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008195/0.3346, allocations: 118.1 kB / 450.6 MB, free: 21.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.336, allocations: 307 kB / 450.9 MB, free: 21.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003347/0.3394, allocations: 1.334 MB / 452.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.3398, allocations: 105 kB / 452.3 MB, free: 21.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003109/0.3429, allocations: 3.538 MB / 455.9 MB, free: 19.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009619/0.3439, allocations: 0.8366 MB / 456.7 MB, free: 19.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008432/0.3447, allocations: 0.7722 MB / 457.5 MB, free: 19.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.3459, allocations: 1.325 MB / 458.8 MB, free: 18.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002321/0.3462, allocations: 136.4 kB / 458.9 MB, free: 18.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001186/0.3474, allocations: 0.7763 MB / 459.7 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007651/0.3481, allocations: 1.148 MB / 460.9 MB, free: 18.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.3492, allocations: 1.499 MB / 462.4 MB, free: 17.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003118/0.3523, allocations: 4.637 MB / 467 MB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3523, allocations: 3 kB / 467 MB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3523, allocations: 0 / 467 MB, free: 15.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.311e-05/0.3524, allocations: 0 / 467 MB, free: 15.29 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.00808/0.3605, allocations: 4.353 MB / 471.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3605, allocations: 14.02 kB / 471.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005605/0.3611, allocations: 0.5437 MB / 471.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006244/0.3674, allocations: 1.763 MB / 473.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.3695, allocations: 1.353 MB / 475 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.3697, allocations: 153.6 kB / 475.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003966/0.3701, allocations: 205.8 kB / 475.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01284/0.3829, allocations: 8.254 MB / 483.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-05/0.383, allocations: 27.33 kB / 483.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000314/0.3834, allocations: 95.64 kB / 483.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003884/0.3873, allocations: 1.901 MB / 485.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.4027, allocations: 7.43 MB / 493.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03486/0.4376, allocations: 25.6 MB / 0.5065 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006181/0.4438, allocations: 2.621 MB / 0.5091 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001349/0.4452, allocations: 0.9118 MB / 0.51 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006615/0.4518, allocations: 5.098 MB / 0.5149 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.4519, allocations: 51.56 kB / 0.515 GB, free: 0.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.356e-06/0.4519, allocations: 0 / 0.515 GB, free: 0.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01222/0.4641, allocations: 5.467 MB / 0.5203 GB, free: 11.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.4642, allocations: 72.7 kB / 0.5204 GB, free: 11.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004418/0.4687, allocations: 2.607 MB / 0.523 GB, free: 8.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.4689, allocations: 49.7 kB / 0.523 GB, free: 8.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/0.4704, allocations: 2.097 MB / 0.525 GB, free: 6.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000862/0.4713, allocations: 0.6476 MB / 0.5257 GB, free: 5.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001217/0.4725, allocations: 0.8257 MB / 0.5265 GB, free: 4.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.4726, allocations: 301.1 kB / 0.5268 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002395/0.475, allocations: 1.374 MB / 0.5281 GB, free: 3.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004277/0.4793, allocations: 3.621 MB / 0.5317 GB, free: 14.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006693/0.486, allocations: 5.426 MB / 0.537 GB, free: 7.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.89e-05/0.4861, allocations: 23.94 kB / 0.537 GB, free: 7.906 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.009196/0.4953, allocations: 5.224 MB / 0.5421 GB, free: 2.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.83e-05/0.4954, allocations: 39.94 kB / 0.5421 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/0.4956, allocations: 84.09 kB / 0.5422 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009667/0.4965, allocations: 355.2 kB / 0.5425 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00297/0.4995, allocations: 0.9163 MB / 0.5434 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005152/0.5047, allocations: 3.829 MB / 0.5472 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/0.5076, allocations: 208 kB / 0.5474 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000541/0.5082, allocations: 247.9 kB / 0.5476 GB, free: 12.88 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.003013/0.5112, allocations: 1.599 MB / 0.5492 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005081/0.5117, allocations: 229 kB / 0.5494 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004194/0.5159, allocations: 2.338 MB / 0.5517 GB, free: 8.676 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001062/0.516, allocations: 31.97 kB / 0.5517 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.516, allocations: 4.062 kB / 0.5517 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-05/0.5161, allocations: 15.97 kB / 0.5517 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.5283, allocations: 6.493 MB / 0.5581 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.5283, allocations: 4 kB / 0.5581 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009221/0.5293, allocations: 244.1 kB / 0.5583 GB, free: 1.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007294/0.53, allocations: 275 kB / 0.5586 GB, free: 1.484 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.5301, allocations: 28 kB / 0.5586 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/0.5338, allocations: 3.154 MB / 0.5617 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/0.5339, allocations: 11.88 kB / 0.5617 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005098/0.539, allocations: 3.59 MB / 0.5652 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006567/0.5396, allocations: 310.1 kB / 0.5655 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004436/0.5401, allocations: 24 kB / 0.5655 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009992/0.5411, allocations: 83.89 kB / 0.5656 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.5413, allocations: 101.1 kB / 0.5657 GB, free: 9.969 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5414, allocations: 55.97 kB / 0.5657 GB, free: 9.914 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002865/0.5443, allocations: 1.684 MB / 0.5674 GB, free: 8.215 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5443, allocations: 0 / 0.5674 GB, free: 8.215 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0031/0.5474, allocations: 0.7188 MB / 0.5681 GB, free: 7.496 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.00558/0.553, allocations: 4.245 MB / 0.5722 GB, free: 3.172 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1756/0.7286, allocations: 3.413 MB / 0.5756 GB, free: 125.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.7286, allocations: 0 / 0.5756 GB, free: 125.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001909/0.7305, allocations: 1.164 MB / 0.5767 GB, free: 125.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00279/0.7333, allocations: 373.3 kB / 0.577 GB, free: 125.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04967/0.783, allocations: 33.24 MB / 0.6095 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003229/0.7863, allocations: 2.619 MB / 0.6121 GB, free: 102.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003191/0.7895, allocations: 1.273 MB / 0.6133 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/0.7912, allocations: 1.355 MB / 0.6146 GB, free: 101.4 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7912, allocations: 0 / 0.6146 GB, free: 101.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06906/0.8603, allocations: 49.31 MB / 0.6628 GB, free: 70.18 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/0.8604, allocations: 216 kB / 0.663 GB, free: 69.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.795/3.655, allocations: 0 / 0.663 GB, free: 69.92 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)