Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.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.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PendulumExcited,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PendulumExcited",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.007507/0.007507, allocations: 100.6 kB / 15.73 MB, free: 6.062 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.002051/0.002051, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04795/0.04795, allocations: 9.136 MB / 299.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002584/0.002584, allocations: 67.89 kB / 414.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1245, allocations: 51.44 MB / 465.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01059/0.1351, allocations: 8.518 MB / 474.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00569/0.1409, allocations: 2.593 MB / 476.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008936/0.1418, allocations: 32 kB / 476.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000873/0.1427, allocations: 373.5 kB / 477.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003241/0.146, allocations: 1.381 MB / 478.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.1464, allocations: 155.7 kB / 478.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003192/0.1496, allocations: 2.521 MB / 481.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001382/0.151, allocations: 1.006 MB / 482.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.1524, allocations: 0.9144 MB / 483.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001819/0.1542, allocations: 1.323 MB / 484.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004325/0.1546, allocations: 244 kB / 484.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.1562, allocations: 0.8309 MB / 485.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001254/0.1575, allocations: 1.223 MB / 486.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001789/0.1593, allocations: 1.592 MB / 488.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006094/0.1654, allocations: 5.077 MB / 493.4 MB, free: 6.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1654, allocations: 0 / 493.4 MB, free: 6.227 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1654, allocations: 0 / 493.4 MB, free: 6.227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001188/0.1655, allocations: 4 kB / 493.4 MB, free: 6.223 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: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01028/0.1758, allocations: 4.371 MB / 497.7 MB, free: 1.781 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.1759, allocations: 8.031 kB / 497.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000859/0.1767, allocations: 0.5433 MB / 498.3 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006761/0.1835, allocations: 1.793 MB / 0.4883 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002447/0.186, allocations: 1.348 MB / 0.4897 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.1861, allocations: 148 kB / 0.4898 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004299/0.1866, allocations: 204 kB / 0.49 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.2001, allocations: 8.188 MB / 0.498 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-05/0.2002, allocations: 19.81 kB / 0.498 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002988/0.2005, allocations: 91.86 kB / 0.4981 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003297/0.2038, allocations: 1.919 MB / 0.5 GB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2295/0.4333, allocations: 7.423 MB / 0.5072 GB, free: 38.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03254/0.4659, allocations: 24.86 MB / 0.5315 GB, free: 22.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004544/0.4705, allocations: 2.416 MB / 0.5339 GB, free: 20.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.4717, allocations: 0.8655 MB / 0.5347 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004812/0.4766, allocations: 4.439 MB / 0.539 GB, free: 16.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.4766, allocations: 47.31 kB / 0.5391 GB, free: 16.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.015e-06/0.4766, allocations: 0 / 0.5391 GB, free: 16.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.009074/0.4857, allocations: 4.696 MB / 0.5437 GB, free: 13.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.4858, allocations: 64.41 kB / 0.5437 GB, free: 13.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/0.4888, allocations: 2.499 MB / 0.5462 GB, free: 11.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.335e-05/0.4889, allocations: 53.52 kB / 0.5462 GB, free: 11.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008604/0.4897, allocations: 2.152 MB / 0.5483 GB, free: 8.895 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003001/0.49, allocations: 0.5535 MB / 0.5489 GB, free: 8.348 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008382/0.4909, allocations: 0.7506 MB / 0.5496 GB, free: 7.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.561e-05/0.4909, allocations: 305.1 kB / 0.5499 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/0.4926, allocations: 1.233 MB / 0.5511 GB, free: 6.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/0.495, allocations: 3.298 MB / 0.5543 GB, free: 1.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005866/0.5009, allocations: 4.896 MB / 0.5591 GB, free: 11.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.029e-05/0.501, allocations: 20 kB / 0.5591 GB, free: 11.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008772/0.5098, allocations: 4.65 MB / 0.5637 GB, free: 7.176 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.049e-05/0.5099, allocations: 39.94 kB / 0.5637 GB, free: 7.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001081/0.51, allocations: 76.12 kB / 0.5638 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006397/0.5106, allocations: 228.7 kB / 0.564 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/0.5134, allocations: 0.8227 MB / 0.5648 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003756/0.5172, allocations: 2.866 MB / 0.5676 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/0.5199, allocations: 183.9 kB / 0.5678 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005603/0.5205, allocations: 227.8 kB / 0.568 GB, free: 2.605 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],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 (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003042/0.5235, allocations: 1.58 MB / 0.5695 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004535/0.524, allocations: 226.4 kB / 0.5697 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003878/0.5279, allocations: 1.931 MB / 0.5716 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/0.528, allocations: 23.98 kB / 0.5717 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.528, allocations: 7.281 kB / 0.5717 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.528, allocations: 3.984 kB / 0.5717 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.5392, allocations: 5.821 MB / 0.5773 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/0.5393, allocations: 7.938 kB / 0.5774 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000892/0.5402, allocations: 211.7 kB / 0.5776 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004171/0.5406, allocations: 138.2 kB / 0.5777 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5407, allocations: 31.98 kB / 0.5777 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003/0.5437, allocations: 2.512 MB / 0.5802 GB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.5438, allocations: 4 kB / 0.5802 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004969/0.5487, allocations: 3.08 MB / 0.5832 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006385/0.5494, allocations: 299.6 kB / 0.5835 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003944/0.5498, allocations: 24 kB / 0.5835 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009593/0.5508, allocations: 67.91 kB / 0.5836 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.551, allocations: 92.89 kB / 0.5836 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.5511, allocations: 43.98 kB / 0.5837 GB, free: 2.184 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002861/0.554, allocations: 1.603 MB / 0.5853 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.907e-06/0.554, allocations: 0 / 0.5853 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002989/0.557, allocations: 0.6638 MB / 0.5859 GB, free: 15.9 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005605/0.5626, allocations: 3.71 MB / 0.5895 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005384/0.568, allocations: 3.027 MB / 0.5925 GB, free: 9.094 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.568, allocations: 384 / 0.5925 GB, free: 9.094 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/0.5696, allocations: 1.008 MB / 0.5935 GB, free: 8.074 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002234/0.5719, allocations: 412.9 kB / 0.5939 GB, free: 7.684 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0471/0.619, allocations: 26.74 MB / 0.62 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003815/0.6229, allocations: 2.601 MB / 0.6225 GB, free: 7.543 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002847/0.6257, allocations: 1.133 MB / 0.6236 GB, free: 6.406 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/0.6279, allocations: 1.308 MB / 0.6249 GB, free: 5.098 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6279, allocations: 0 / 0.6249 GB, free: 5.098 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09745/0.7254, allocations: 44.94 MB / 0.6688 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/16.16, allocations: 3.781 kB / 0.6688 GB, free: 8.367 MB / 0.4981 GB (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PendulumExcited_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_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)