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.01676/0.01676, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.002558/0.002558, allocations: 190.3 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.577/2.577, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2942/0.2942, allocations: 9.103 MB / 299.6 MB, free: 1.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 72.11 kB / 414.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4816/0.4842, allocations: 51.42 MB / 465.6 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01718/0.5015, allocations: 8.431 MB / 474 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00997/0.5115, allocations: 2.611 MB / 476.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002923/0.5145, allocations: 37.94 kB / 476.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002149/0.5167, allocations: 359.8 kB / 477 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008077/0.5248, allocations: 1.466 MB / 478.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.5261, allocations: 140.2 kB / 478.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006619/0.5327, allocations: 2.534 MB / 481.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003072/0.5359, allocations: 0.9227 MB / 482.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00362/0.5395, allocations: 0.9087 MB / 483 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003932/0.5435, allocations: 1.311 MB / 484.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00201/0.5456, allocations: 232 kB / 484.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004207/0.5499, allocations: 0.8341 MB / 485.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002791/0.5527, allocations: 1.231 MB / 486.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004869/0.5576, allocations: 1.585 MB / 488.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.5696, allocations: 5.05 MB / 493.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.5697, allocations: 0 / 493.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5697, allocations: 0 / 493.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002623/0.57, allocations: 0 / 493.2 MB, free: 15.71 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.02207/0.5921, allocations: 4.445 MB / 497.7 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.541e-05/0.5922, allocations: 12.03 kB / 497.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002218/0.5944, allocations: 0.5471 MB / 498.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/0.6074, allocations: 1.781 MB / 500 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006375/0.6139, allocations: 1.369 MB / 0.4896 GB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002898/0.6142, allocations: 151.8 kB / 0.4898 GB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/0.6156, allocations: 195.9 kB / 0.4899 GB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02647/0.6421, allocations: 8.255 MB / 0.498 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.6424, allocations: 23.77 kB / 0.498 GB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000927/0.6433, allocations: 99.8 kB / 0.4981 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005748/0.6491, allocations: 1.911 MB / 0.5 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02918/0.6783, allocations: 7.414 MB / 0.5072 GB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07042/0.7488, allocations: 25.59 MB / 0.5322 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.7606, allocations: 2.61 MB / 0.5348 GB, free: 8.941 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/0.7632, allocations: 0.9157 MB / 0.5357 GB, free: 8.023 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01362/0.7768, allocations: 5.099 MB / 0.5406 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.643e-05/0.777, allocations: 47.5 kB / 0.5407 GB, free: 2.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 7.203e-06/0.777, allocations: 0 / 0.5407 GB, free: 2.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.02506/0.8021, allocations: 5.52 MB / 0.5461 GB, free: 12.85 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.8022, allocations: 72.72 kB / 0.5461 GB, free: 12.76 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006723/0.809, allocations: 2.615 MB / 0.5487 GB, free: 10.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003394/0.8094, allocations: 49.69 kB / 0.5487 GB, free: 10.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00245/0.8118, allocations: 2.184 MB / 0.5509 GB, free: 7.855 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/0.8131, allocations: 0.6742 MB / 0.5515 GB, free: 7.176 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001998/0.8151, allocations: 0.8341 MB / 0.5524 GB, free: 6.328 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.8153, allocations: 301.1 kB / 0.5526 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003931/0.8192, allocations: 1.374 MB / 0.554 GB, free: 4.648 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00689/0.8261, allocations: 3.633 MB / 0.5575 GB, free: 15.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/0.8382, allocations: 5.415 MB / 0.5628 GB, free: 9.371 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001541/0.8384, allocations: 23.94 kB / 0.5628 GB, free: 9.348 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.02221/0.8606, allocations: 5.232 MB / 0.5679 GB, free: 4.109 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.8608, allocations: 39.94 kB / 0.568 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002307/0.8611, allocations: 80 kB / 0.5681 GB, free: 3.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001757/0.8629, allocations: 354.1 kB / 0.5684 GB, free: 3.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006654/0.8695, allocations: 0.9243 MB / 0.5693 GB, free: 2.719 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009713/0.8793, allocations: 4.173 MB / 0.5734 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006859/0.8862, allocations: 203.9 kB / 0.5736 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/0.8879, allocations: 248.2 kB / 0.5738 GB, free: 13.96 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.00533/0.8932, allocations: 1.611 MB / 0.5754 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/0.8943, allocations: 238.4 kB / 0.5756 GB, free: 12.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00839/0.9027, allocations: 2.35 MB / 0.5779 GB, free: 9.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001788/0.9029, allocations: 31.97 kB / 0.5779 GB, free: 9.699 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.9029, allocations: 4 kB / 0.5779 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.903, allocations: 3.984 kB / 0.5779 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02333/0.9263, allocations: 6.453 MB / 0.5842 GB, free: 3.105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.235e-05/0.9265, allocations: 8.062 kB / 0.5843 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/0.9282, allocations: 243.7 kB / 0.5845 GB, free: 2.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.9295, allocations: 260 kB / 0.5847 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.9297, allocations: 31.98 kB / 0.5848 GB, free: 2.574 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4749/1.405, allocations: 3.408 MB / 0.5881 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.121e-05/1.405, allocations: 6.25 kB / 0.5881 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.418, allocations: 3.618 MB / 0.5916 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001648/1.419, allocations: 319.8 kB / 0.5919 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/1.42, allocations: 31.47 kB / 0.592 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00233/1.423, allocations: 75.48 kB / 0.592 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/1.423, allocations: 110.4 kB / 0.5921 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002007/1.423, allocations: 51.3 kB / 0.5922 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006622/1.43, allocations: 1.679 MB / 0.5938 GB, free: 108.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.43, allocations: 1.531 kB / 0.5938 GB, free: 108.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009093/1.439, allocations: 0.7185 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.01483/1.454, allocations: 4.265 MB / 0.5987 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01187/1.466, allocations: 3.433 MB / 0.6021 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/1.466, allocations: 0 / 0.6021 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003514/1.47, allocations: 1.175 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.004338/1.474, allocations: 408.6 kB / 0.6036 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07939/1.553, allocations: 29.27 MB / 0.6322 GB, free: 83.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004884/1.558, allocations: 2.616 MB / 0.6347 GB, free: 81.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00501/1.564, allocations: 1.266 MB / 0.636 GB, free: 80.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003297/1.567, allocations: 1.354 MB / 0.6373 GB, free: 79.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.533e-06/1.567, allocations: 0 / 0.6373 GB, free: 79.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2499/1.817, allocations: 49.55 MB / 0.6857 GB, free: 29.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.15/30.97, allocations: 2.5 kB / 0.6857 GB, free: 29.87 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)