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.00757/0.00757, allocations: 98.86 kB / 15.73 MB, free: 6.043 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.001906/0.001906, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1472/0.1472, allocations: 9.096 MB / 299.6 MB, free: 1.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001856, allocations: 68.09 kB / 414.1 MB, free: 8.816 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2572, allocations: 51.43 MB / 465.6 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.008086/0.2654, allocations: 8.43 MB / 474 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00499/0.2704, allocations: 2.607 MB / 476.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.2717, allocations: 34.19 kB / 476.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009688/0.2727, allocations: 364.6 kB / 477 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003649/0.2764, allocations: 1.417 MB / 478.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004125/0.2768, allocations: 139.1 kB / 478.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003039/0.2799, allocations: 2.546 MB / 481.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.2811, allocations: 0.9219 MB / 482 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001481/0.2826, allocations: 0.9032 MB / 482.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.2843, allocations: 1.311 MB / 484.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005407/0.2849, allocations: 233.2 kB / 484.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.2865, allocations: 0.8293 MB / 485.3 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.2876, allocations: 1.235 MB / 486.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001944/0.2896, allocations: 1.581 MB / 488.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008762/0.2983, allocations: 5.052 MB / 493.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2984, allocations: 0 / 493.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2984, allocations: 1.156 kB / 493.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002348/0.2987, allocations: 0 / 493.2 MB, free: 15.74 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.01383/0.3125, allocations: 4.447 MB / 497.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3126, allocations: 12.03 kB / 497.6 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009654/0.3135, allocations: 0.5394 MB / 498.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006941/0.3205, allocations: 1.785 MB / 499.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002766/0.3233, allocations: 1.365 MB / 0.4896 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.3234, allocations: 159.8 kB / 0.4897 GB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004361/0.3239, allocations: 195.9 kB / 0.4899 GB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.3376, allocations: 8.247 MB / 0.498 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.81e-05/0.3377, allocations: 31.75 kB / 0.498 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003138/0.338, allocations: 95.8 kB / 0.4981 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003298/0.3413, allocations: 1.903 MB / 0.4999 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/0.3569, allocations: 7.422 MB / 0.5072 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04152/0.3985, allocations: 25.59 MB / 0.5322 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006953/0.4055, allocations: 2.614 MB / 0.5347 GB, free: 8.965 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.4072, allocations: 0.9157 MB / 0.5356 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007574/0.4148, allocations: 5.103 MB / 0.5406 GB, free: 2.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.4149, allocations: 47.5 kB / 0.5406 GB, free: 2.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.737e-06/0.4149, allocations: 0 / 0.5406 GB, free: 2.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=176): time 0.01399/0.4289, allocations: 5.52 MB / 0.546 GB, free: 12.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/0.429, allocations: 64.72 kB / 0.5461 GB, free: 12.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004149/0.4332, allocations: 2.619 MB / 0.5487 GB, free: 10.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.4333, allocations: 53.69 kB / 0.5487 GB, free: 10.08 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001731/0.4351, allocations: 2.181 MB / 0.5508 GB, free: 7.879 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006913/0.4358, allocations: 0.6781 MB / 0.5515 GB, free: 7.195 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.4371, allocations: 0.8302 MB / 0.5523 GB, free: 6.352 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4373, allocations: 305.1 kB / 0.5526 GB, free: 6.051 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/0.44, allocations: 1.367 MB / 0.5539 GB, free: 4.676 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004614/0.4447, allocations: 3.633 MB / 0.5575 GB, free: 15.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007827/0.4525, allocations: 5.41 MB / 0.5628 GB, free: 9.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-05/0.4526, allocations: 31.94 kB / 0.5628 GB, free: 9.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01114/0.4638, allocations: 5.234 MB / 0.5679 GB, free: 4.137 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.123e-05/0.4639, allocations: 39.94 kB / 0.5679 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/0.464, allocations: 80 kB / 0.568 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.465, allocations: 358.1 kB / 0.5684 GB, free: 3.668 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003348/0.4684, allocations: 0.9125 MB / 0.5693 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006206/0.4746, allocations: 4.177 MB / 0.5733 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003851/0.4785, allocations: 204.2 kB / 0.5735 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009077/0.4795, allocations: 244 kB / 0.5738 GB, free: 13.99 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.003869/0.4834, allocations: 1.615 MB / 0.5753 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005537/0.4839, allocations: 246.3 kB / 0.5756 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.4886, allocations: 2.342 MB / 0.5779 GB, free: 9.758 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001148/0.4887, allocations: 31.98 kB / 0.5779 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.4887, allocations: 4 kB / 0.5779 GB, free: 9.723 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.4887, allocations: 7.969 kB / 0.5779 GB, free: 9.715 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/0.5022, allocations: 6.449 MB / 0.5842 GB, free: 3.133 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.717e-05/0.5023, allocations: 4 kB / 0.5842 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/0.5039, allocations: 239.7 kB / 0.5844 GB, free: 2.895 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.505, allocations: 251.8 kB / 0.5847 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001867/0.5052, allocations: 47.97 kB / 0.5847 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2314/0.7366, allocations: 3.405 MB / 0.588 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.7367, allocations: 4.25 kB / 0.588 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00564/0.7423, allocations: 3.627 MB / 0.5916 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007949/0.7431, allocations: 315.2 kB / 0.5919 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003081/0.7434, allocations: 27.34 kB / 0.5919 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008572/0.7443, allocations: 79.05 kB / 0.592 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002677/0.7446, allocations: 107.8 kB / 0.5921 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.7447, allocations: 53.2 kB / 0.5921 GB, free: 109 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003249/0.748, allocations: 1.678 MB / 0.5938 GB, free: 108.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.748, allocations: 1.812 kB / 0.5938 GB, free: 108.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004188/0.7522, allocations: 0.7193 MB / 0.5945 GB, free: 108.3 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.006355/0.7585, allocations: 4.261 MB / 0.5987 GB, free: 106.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006584/0.7652, allocations: 3.435 MB / 0.602 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/0.7652, allocations: 2 kB / 0.602 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/0.7674, allocations: 1.168 MB / 0.6031 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002566/0.77, allocations: 413.1 kB / 0.6035 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0422/0.8122, allocations: 29.28 MB / 0.6321 GB, free: 84.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002171/0.8144, allocations: 2.619 MB / 0.6347 GB, free: 81.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002366/0.8168, allocations: 1.263 MB / 0.6359 GB, free: 80.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/0.8181, allocations: 1.347 MB / 0.6372 GB, free: 79.18 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.8181, allocations: 4 kB / 0.6372 GB, free: 79.18 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08223/0.9003, allocations: 49.55 MB / 0.6856 GB, free: 29.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.93/16.83, allocations: 6.344 kB / 0.6856 GB, free: 29.84 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)