Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.001224/0.001224, allocations: 108 kB / 15.61 MB, free: 148 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.001493/0.001493, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.44/1.44, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1765/0.1765, allocations: 9.101 MB / 299.5 MB, free: 1.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 67.89 kB / 362 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1205, allocations: 51.43 MB / 413.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.009404/0.13, allocations: 7.017 MB / 420.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005374/0.1354, allocations: 2.36 MB / 422.8 MB, free: 36 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.1367, allocations: 27.94 kB / 422.9 MB, free: 8 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2398/0.3766, allocations: 306.7 kB / 423.2 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00507/0.3817, allocations: 1.263 MB / 424.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004532/0.3822, allocations: 82.31 kB / 424.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003398/0.3856, allocations: 2.147 MB / 426.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.3868, allocations: 0.7072 MB / 427.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.3881, allocations: 0.7537 MB / 428.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/0.3896, allocations: 1.129 MB / 429.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003553/0.3899, allocations: 203 kB / 429.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.3915, allocations: 0.8042 MB / 430.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009444/0.3924, allocations: 1.061 MB / 431.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001159/0.3936, allocations: 1.35 MB / 432.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004143/0.3977, allocations: 4.274 MB / 436.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3978, allocations: 0 / 436.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3978, allocations: 0 / 436.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.264e-05/0.3979, allocations: 0 / 436.9 MB, free: 33.48 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.007223/0.4051, allocations: 3.356 MB / 440.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4052, allocations: 12.94 kB / 440.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005512/0.4057, allocations: 484 kB / 440.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005933/0.4117, allocations: 1.71 MB / 442.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002249/0.4139, allocations: 1.2 MB / 443.7 MB, free: 30.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-05/0.414, allocations: 123 kB / 443.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003227/0.4144, allocations: 161.1 kB / 444 MB, free: 30.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009264/0.4236, allocations: 7.2 MB / 451.2 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.405e-05/0.4237, allocations: 17.97 kB / 451.2 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000239/0.424, allocations: 76.3 kB / 451.3 MB, free: 27.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002569/0.4266, allocations: 1.738 MB / 453 MB, free: 27.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.4399, allocations: 6.586 MB / 459.6 MB, free: 24.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03689/0.4769, allocations: 21.18 MB / 480.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004758/0.4817, allocations: 2.016 MB / 482.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.4829, allocations: 0.6781 MB / 483.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005409/0.4884, allocations: 3.284 MB / 486.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.4884, allocations: 46.03 kB / 486.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=106): time 4.168e-06/0.4884, allocations: 0 / 486.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.01126/0.4997, allocations: 5.53 MB / 492.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.4998, allocations: 60.41 kB / 492.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/0.5034, allocations: 2.27 MB / 494.6 MB, free: 456 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.862e-05/0.5035, allocations: 41.7 kB / 494.7 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001384/0.5049, allocations: 1.836 MB / 496.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004763/0.5054, allocations: 460.3 kB / 497 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009767/0.5064, allocations: 0.6649 MB / 497.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5066, allocations: 303.8 kB / 497.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001814/0.5084, allocations: 1.103 MB / 499 MB, free: 12.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003143/0.5115, allocations: 2.963 MB / 0.4902 GB, free: 8.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005393/0.5169, allocations: 4.371 MB / 0.4945 GB, free: 2.879 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.518e-05/0.517, allocations: 20 kB / 0.4945 GB, free: 2.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.007338/0.5243, allocations: 4.145 MB / 0.4986 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.5244, allocations: 35.94 kB / 0.4986 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.477e-05/0.5245, allocations: 64 kB / 0.4987 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005282/0.525, allocations: 200.8 kB / 0.4989 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.5271, allocations: 0.7291 MB / 0.4996 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/0.5301, allocations: 2.697 MB / 0.5022 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002312/0.5325, allocations: 168 kB / 0.5024 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.5327, allocations: 202.7 kB / 0.5026 GB, free: 10.49 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (395): * Single equations (assignments): 390 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002428/0.5352, allocations: 1.426 MB / 0.504 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003249/0.5355, allocations: 185.5 kB / 0.5041 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002677/0.5382, allocations: 1.619 MB / 0.5057 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-05/0.5383, allocations: 26.25 kB / 0.5057 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5383, allocations: 0 / 0.5057 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/0.5383, allocations: 7.922 kB / 0.5057 GB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008039/0.5464, allocations: 4.879 MB / 0.5105 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.5464, allocations: 4 kB / 0.5105 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006398/0.5471, allocations: 163.8 kB / 0.5107 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003258/0.5474, allocations: 113.1 kB / 0.5108 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-05/0.5475, allocations: 27.98 kB / 0.5108 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002096/0.5496, allocations: 2.163 MB / 0.5129 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5496, allocations: 4 kB / 0.5129 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003621/0.5532, allocations: 2.553 MB / 0.5154 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005668/0.5538, allocations: 266.8 kB / 0.5157 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.554, allocations: 28 kB / 0.5157 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006646/0.5547, allocations: 54.81 kB / 0.5157 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.5549, allocations: 64.86 kB / 0.5158 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.13e-05/0.5549, allocations: 36 kB / 0.5158 GB, free: 12.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002159/0.5571, allocations: 1.472 MB / 0.5173 GB, free: 11.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5571, allocations: 4 kB / 0.5173 GB, free: 11.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002717/0.5598, allocations: 0.5663 MB / 0.5178 GB, free: 10.49 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * 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 {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004137/0.564, allocations: 3.175 MB / 0.5209 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006022/0.57, allocations: 3.463 MB / 0.5243 GB, free: 3.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.5701, allocations: 448 / 0.5243 GB, free: 3.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.5713, allocations: 0.8345 MB / 0.5251 GB, free: 2.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.5732, allocations: 344.6 kB / 0.5255 GB, free: 2.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03712/0.6103, allocations: 25.1 MB / 0.55 GB, free: 6.391 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002574/0.6129, allocations: 2.356 MB / 0.5523 GB, free: 3.996 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002569/0.6155, allocations: 1.032 MB / 0.5533 GB, free: 2.961 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/0.617, allocations: 1.101 MB / 0.5544 GB, free: 1.859 MB / 430.1 MB Notification: Performance of SimCode: time 1.302e-06/0.617, allocations: 4 kB / 0.5544 GB, free: 1.855 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2812/0.8982, allocations: 40.21 MB / 0.5936 GB, free: 139.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/12.39, allocations: 8.812 kB / 0.5936 GB, free: 139.5 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.Pendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)