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.001488/0.001488, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001386, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.502/1.502, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2316/0.2316, allocations: 9.096 MB / 299.5 MB, free: 1.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001609, allocations: 71.88 kB / 362.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1259, allocations: 51.42 MB / 413.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01068/0.1366, allocations: 8.452 MB / 421.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.283/0.4197, allocations: 2.595 MB / 424.5 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.4216, allocations: 34.06 kB / 424.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001143/0.4227, allocations: 365.1 kB / 424.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.4272, allocations: 1.411 MB / 426.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005297/0.4278, allocations: 130.7 kB / 426.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003984/0.4318, allocations: 2.538 MB / 429 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.4332, allocations: 0.913 MB / 429.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.4345, allocations: 0.9046 MB / 430.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.4361, allocations: 1.312 MB / 432.1 MB, free: 35.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003701/0.4365, allocations: 236.9 kB / 432.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.4379, allocations: 0.8273 MB / 433.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009171/0.4389, allocations: 1.232 MB / 434.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.4401, allocations: 1.584 MB / 436 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004014/0.4441, allocations: 4.794 MB / 440.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4441, allocations: 2.344 kB / 440.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4441, allocations: 4 kB / 440.8 MB, free: 31.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.412e-05/0.4442, allocations: 0 / 440.8 MB, free: 31.57 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.01011/0.4544, allocations: 4.337 MB / 445.1 MB, free: 29.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.4544, allocations: 9.375 kB / 445.1 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008332/0.4553, allocations: 0.5482 MB / 445.7 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006262/0.4615, allocations: 1.767 MB / 447.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003077/0.4647, allocations: 1.355 MB / 448.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.4648, allocations: 155.6 kB / 449 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004826/0.4653, allocations: 197.9 kB / 449.2 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.4779, allocations: 8.257 MB / 457.4 MB, free: 24.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.171e-05/0.4781, allocations: 17.97 kB / 457.4 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/0.4784, allocations: 93.44 kB / 457.5 MB, free: 24.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00323/0.4816, allocations: 1.905 MB / 459.4 MB, free: 24.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.4984, allocations: 7.427 MB / 466.9 MB, free: 21.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04094/0.5394, allocations: 25.61 MB / 492.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00635/0.5458, allocations: 2.62 MB / 495.1 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/0.5476, allocations: 0.9113 MB / 496 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008752/0.5563, allocations: 5.103 MB / 0.4894 GB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.844e-05/0.5564, allocations: 47.56 kB / 0.4894 GB, free: 9.793 MB / 366.1 MB Notification: Performance of pre-optimization done (n=148): time 6.332e-06/0.5565, allocations: 0 / 0.4894 GB, free: 9.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=176): time 0.01398/0.5704, allocations: 5.458 MB / 0.4947 GB, free: 4.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.5705, allocations: 68.72 kB / 0.4948 GB, free: 4.273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004834/0.5754, allocations: 2.618 MB / 0.4974 GB, free: 1.625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002475/0.5757, allocations: 45.7 kB / 0.4974 GB, free: 1.574 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.5772, allocations: 2.098 MB / 0.4994 GB, free: 15.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008001/0.578, allocations: 0.645 MB / 0.5001 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001689/0.5797, allocations: 0.8246 MB / 0.5009 GB, free: 14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.5799, allocations: 301.1 kB / 0.5012 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002579/0.5824, allocations: 1.378 MB / 0.5025 GB, free: 12.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004325/0.5868, allocations: 3.625 MB / 0.5061 GB, free: 7.562 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007272/0.5941, allocations: 5.414 MB / 0.5113 GB, free: 1.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-05/0.5942, allocations: 27.94 kB / 0.5114 GB, free: 1.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01132/0.6056, allocations: 5.226 MB / 0.5165 GB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.6057, allocations: 43.94 kB / 0.5165 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001305/0.6059, allocations: 76 kB / 0.5166 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.6069, allocations: 358.3 kB / 0.5169 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003179/0.6101, allocations: 0.9163 MB / 0.5178 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005574/0.6157, allocations: 4.178 MB / 0.5219 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/0.619, allocations: 203 kB / 0.5221 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008544/0.6199, allocations: 244 kB / 0.5223 GB, free: 5.652 MB / 398.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.003627/0.6235, allocations: 1.611 MB / 0.5239 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006008/0.6241, allocations: 229 kB / 0.5241 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004641/0.6288, allocations: 2.344 MB / 0.5264 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/0.6289, allocations: 27.98 kB / 0.5264 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.069e-05/0.6289, allocations: 8.062 kB / 0.5264 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6289, allocations: 7.969 kB / 0.5265 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/0.6425, allocations: 6.499 MB / 0.5328 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/0.6425, allocations: 7.984 kB / 0.5328 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.6436, allocations: 239.7 kB / 0.533 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007291/0.6443, allocations: 268.8 kB / 0.5333 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.6445, allocations: 28 kB / 0.5333 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004317/0.6488, allocations: 3.413 MB / 0.5367 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.6488, allocations: 8.094 kB / 0.5367 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005827/0.6547, allocations: 3.592 MB / 0.5402 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008227/0.6555, allocations: 306.2 kB / 0.5405 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000592/0.6561, allocations: 36 kB / 0.5405 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.6574, allocations: 75.91 kB / 0.5406 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.6576, allocations: 105 kB / 0.5407 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.6578, allocations: 50.42 kB / 0.5407 GB, free: 2.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003301/0.6611, allocations: 1.684 MB / 0.5424 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6611, allocations: 0 / 0.5424 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004011/0.6651, allocations: 0.7148 MB / 0.5431 GB, free: 52 kB / 414.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.00644/0.6716, allocations: 4.263 MB / 0.5472 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008984/0.6806, allocations: 5.051 MB / 0.5522 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6806, allocations: 1.125 kB / 0.5522 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.6826, allocations: 1.18 MB / 0.5533 GB, free: 5.484 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/0.6854, allocations: 410.9 kB / 0.5537 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05526/0.7407, allocations: 31.72 MB / 0.5847 GB, free: 0.875 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2071/0.9479, allocations: 2.615 MB / 0.5872 GB, free: 139.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004694/0.9526, allocations: 1.264 MB / 0.5885 GB, free: 139.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003137/0.9558, allocations: 1.347 MB / 0.5898 GB, free: 139.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.383e-06/0.9558, allocations: 0 / 0.5898 GB, free: 139.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09824/1.054, allocations: 50.36 MB / 0.639 GB, free: 123.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/13.23, allocations: 11.03 kB / 0.639 GB, free: 123.7 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)