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.004715/0.004715, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001154/0.001154, allocations: 201.6 kB / 16.68 MB, free: 5.969 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1534/0.1534, allocations: 9.105 MB / 299.7 MB, free: 1.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 68.11 kB / 414.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2438, allocations: 51.44 MB / 465.6 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.009297/0.2532, allocations: 8.43 MB / 474 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005138/0.2584, allocations: 2.611 MB / 476.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.2595, allocations: 34.19 kB / 476.7 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008979/0.2604, allocations: 361.2 kB / 477 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002971/0.2634, allocations: 1.458 MB / 478.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.2638, allocations: 143.5 kB / 478.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002482/0.2663, allocations: 2.545 MB / 481.1 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009235/0.2673, allocations: 0.9064 MB / 482.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009682/0.2682, allocations: 0.9132 MB / 483 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.2695, allocations: 1.322 MB / 484.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003323/0.2698, allocations: 232.3 kB / 484.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.2711, allocations: 0.8186 MB / 485.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007901/0.2719, allocations: 1.239 MB / 486.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.2729, allocations: 1.576 MB / 488.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004829/0.2778, allocations: 5.054 MB / 493.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2778, allocations: 4 kB / 493.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2778, allocations: 0 / 493.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001038/0.2779, allocations: 1.125 kB / 493.2 MB, free: 15.75 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01032/0.2882, allocations: 4.442 MB / 497.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.2883, allocations: 8.031 kB / 497.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007656/0.2891, allocations: 0.5433 MB / 498.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006628/0.2957, allocations: 1.789 MB / 500 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002581/0.2983, allocations: 1.365 MB / 0.4896 GB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.2985, allocations: 159.8 kB / 0.4898 GB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003983/0.2989, allocations: 199.9 kB / 0.4899 GB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.3109, allocations: 8.243 MB / 0.498 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.722e-05/0.311, allocations: 31.75 kB / 0.498 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000277/0.3113, allocations: 95.8 kB / 0.4981 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003035/0.3143, allocations: 1.907 MB / 0.5 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01398/0.3283, allocations: 7.418 MB / 0.5072 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03786/0.3662, allocations: 25.59 MB / 0.5322 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006269/0.3725, allocations: 2.618 MB / 0.5348 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001463/0.374, allocations: 0.9118 MB / 0.5357 GB, free: 8.012 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006834/0.3808, allocations: 5.106 MB / 0.5407 GB, free: 2.391 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.3809, allocations: 47.56 kB / 0.5407 GB, free: 2.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 4.699e-06/0.3809, allocations: 0 / 0.5407 GB, free: 2.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01301/0.3939, allocations: 5.52 MB / 0.5461 GB, free: 12.83 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.394, allocations: 68.72 kB / 0.5462 GB, free: 12.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.3982, allocations: 2.615 MB / 0.5487 GB, free: 10.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.62e-05/0.3983, allocations: 45.7 kB / 0.5488 GB, free: 10.05 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.3997, allocations: 2.181 MB / 0.5509 GB, free: 7.848 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005435/0.4003, allocations: 0.6859 MB / 0.5515 GB, free: 7.156 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001168/0.4014, allocations: 0.8263 MB / 0.5524 GB, free: 6.316 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.484e-05/0.4016, allocations: 305.1 kB / 0.5526 GB, free: 6.016 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/0.4038, allocations: 1.367 MB / 0.554 GB, free: 4.641 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003755/0.4076, allocations: 3.633 MB / 0.5575 GB, free: 15.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006219/0.4138, allocations: 5.418 MB / 0.5628 GB, free: 9.367 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-05/0.4139, allocations: 27.94 kB / 0.5628 GB, free: 9.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008522/0.4224, allocations: 5.218 MB / 0.5679 GB, free: 4.113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.697e-05/0.4225, allocations: 43.94 kB / 0.568 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.48e-05/0.4226, allocations: 80 kB / 0.5681 GB, free: 3.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009426/0.4235, allocations: 358.5 kB / 0.5684 GB, free: 3.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002665/0.4262, allocations: 0.9162 MB / 0.5693 GB, free: 2.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005354/0.4316, allocations: 4.169 MB / 0.5734 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/0.4344, allocations: 215.8 kB / 0.5736 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005523/0.435, allocations: 248 kB / 0.5738 GB, free: 13.95 MB / 462.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.002948/0.438, allocations: 1.607 MB / 0.5754 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005439/0.4385, allocations: 242.5 kB / 0.5756 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004255/0.4428, allocations: 2.346 MB / 0.5779 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/0.4429, allocations: 31.97 kB / 0.5779 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.4429, allocations: 4 kB / 0.5779 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.4429, allocations: 11.91 kB / 0.5779 GB, free: 9.68 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/0.4543, allocations: 6.449 MB / 0.5842 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.4544, allocations: 4 kB / 0.5842 GB, free: 3.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009319/0.4553, allocations: 244.1 kB / 0.5845 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006984/0.456, allocations: 255.6 kB / 0.5847 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.4561, allocations: 35.98 kB / 0.5848 GB, free: 2.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1986/0.6548, allocations: 3.413 MB / 0.5881 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.6548, allocations: 8 kB / 0.5881 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00531/0.6601, allocations: 3.617 MB / 0.5916 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/0.6607, allocations: 317.3 kB / 0.5919 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/0.661, allocations: 30.91 kB / 0.592 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000829/0.6619, allocations: 74.67 kB / 0.592 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.6621, allocations: 103.9 kB / 0.5921 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.6622, allocations: 55.92 kB / 0.5922 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002595/0.6648, allocations: 1.679 MB / 0.5938 GB, free: 108.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.283e-06/0.6648, allocations: 0 / 0.5938 GB, free: 108.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003006/0.6678, allocations: 0.7229 MB / 0.5945 GB, free: 108.1 MB / 462.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.005431/0.6733, allocations: 4.258 MB / 0.5987 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.6788, allocations: 3.434 MB / 0.602 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.6788, allocations: 1.188 kB / 0.602 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.6804, allocations: 1.17 MB / 0.6032 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.6825, allocations: 411.1 kB / 0.6036 GB, free: 104.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03574/0.7182, allocations: 29.28 MB / 0.6322 GB, free: 83.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.7204, allocations: 2.617 MB / 0.6347 GB, free: 81.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002312/0.7227, allocations: 1.266 MB / 0.636 GB, free: 80.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/0.7239, allocations: 1.343 MB / 0.6373 GB, free: 79.17 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7239, allocations: 0 / 0.6373 GB, free: 79.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06951/0.7935, allocations: 49.56 MB / 0.6857 GB, free: 29.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/16.17, allocations: 6.172 kB / 0.6857 GB, free: 29.83 MB / 462.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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.DoublePendulum_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_DoublePendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)