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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.005084/0.005084, allocations: 171.3 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 223.2 MB / 239 MB, free: 36 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008777/0.0008776, allocations: 94.33 kB / 290.2 MB, free: 4.527 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04004/0.04004, allocations: 8.942 MB / 350.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002794, allocations: 11.98 kB / 413.2 MB, free: 5.141 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1781, allocations: 52.39 MB / 465.6 MB, free: 69.21 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0921/0.2702, allocations: 95.73 MB / 0.5482 GB, free: 5.348 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.2704, allocations: 75.97 kB / 0.5483 GB, free: 5.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3568/0.6272, allocations: 110.4 MB / 0.6561 GB, free: 14.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6273, allocations: 0 / 0.6561 GB, free: 14.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001364/0.6274, allocations: 95.94 kB / 0.6562 GB, free: 14.11 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2108 * Number of variables: 2108 Notification: Performance of Generate backend data structure: time 0.01085/0.6383, allocations: 5.087 MB / 0.6612 GB, free: 8.957 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.6383, allocations: 12.03 kB / 0.6612 GB, free: 8.945 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001737/0.6401, allocations: 1.039 MB / 0.6622 GB, free: 7.895 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01451/0.6546, allocations: 3.732 MB / 0.6658 GB, free: 4.148 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007355/0.662, allocations: 2.931 MB / 0.6687 GB, free: 1.168 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003259/0.6623, allocations: 402.2 kB / 0.6691 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001749/0.6641, allocations: 0.4997 MB / 0.6696 GB, free: 280 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02238/0.6865, allocations: 14.46 MB / 0.6837 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.6866, allocations: 55.5 kB / 0.6837 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007422/0.6874, allocations: 259.8 kB / 0.684 GB, free: 384 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001962/0.6893, allocations: 1.638 MB / 0.6856 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/0.7094, allocations: 13.09 MB / 0.6984 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2163/0.9257, allocations: 57.59 MB / 0.7546 GB, free: 46.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006517/0.9323, allocations: 4.141 MB / 0.7587 GB, free: 45.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007648/0.94, allocations: 6.419 MB / 0.7649 GB, free: 42.53 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.94, allocations: 51.78 kB / 0.765 GB, free: 42.49 MB / 442.7 MB Notification: Performance of pre-optimization done (n=217): time 3.556e-06/0.94, allocations: 0 / 0.765 GB, free: 42.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.01339/0.9534, allocations: 10.2 MB / 0.7749 GB, free: 38.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.9535, allocations: 150.5 kB / 0.7751 GB, free: 38.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005148/0.9586, allocations: 4.528 MB / 0.7795 GB, free: 38.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.9588, allocations: 56.3 kB / 0.7796 GB, free: 38.24 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.9604, allocations: 4.024 MB / 0.7835 GB, free: 35.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/0.9609, allocations: 0.8994 MB / 0.7844 GB, free: 35.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.9612, allocations: 157.1 kB / 0.7845 GB, free: 35.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002919/0.9615, allocations: 0.6439 MB / 0.7851 GB, free: 35.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/0.9644, allocations: 2.451 MB / 0.7875 GB, free: 35.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004433/0.9688, allocations: 7.315 MB / 0.7947 GB, free: 28.83 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004331/0.9732, allocations: 4.295 MB / 0.7989 GB, free: 28.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.379e-05/0.9733, allocations: 49.34 kB / 0.7989 GB, free: 28.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=1031) (initialization): time 0.01105/0.9843, allocations: 9.597 MB / 0.8083 GB, free: 25.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-05/0.9844, allocations: 81 kB / 0.8084 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/0.9845, allocations: 174.1 kB / 0.8085 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005463/0.9851, allocations: 381.3 kB / 0.8089 GB, free: 25.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004181/0.9893, allocations: 1.793 MB / 0.8107 GB, free: 24.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/0.9916, allocations: 2.861 MB / 0.8134 GB, free: 22.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/0.9959, allocations: 411.5 kB / 0.8138 GB, free: 22.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004439/0.9963, allocations: 496 kB / 0.8143 GB, free: 22.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 29 (worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],cutForce.world.gravityArrowColor[3],cutForce.world.gravityArrowColor[2],cutForce.world.gravityArrowColor[1],cutForce.world.axisColor_x[3],cutForce.world.axisColor_x[2],cutForce.world.axisColor_x[1],cutForce.world.groundColor[3],cutForce.world.groundColor[2],cutForce.world.groundColor[1],cutForce.world.gravitySphereColor[3],cutForce.world.gravitySphereColor[2],cutForce.world.gravitySphereColor[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 (969): * Single equations (assignments): 961 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003195/0.9995, allocations: 2.942 MB / 0.8172 GB, free: 21.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004855/1, allocations: 411.4 kB / 0.8176 GB, free: 21.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/1.004, allocations: 2.531 MB / 0.82 GB, free: 20.15 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/1.004, allocations: 42.73 kB / 0.8201 GB, free: 20.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.004, allocations: 3.75 kB / 0.8201 GB, free: 20.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/1.004, allocations: 15.66 kB / 0.8201 GB, free: 20.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/1.015, allocations: 8.521 MB / 0.8284 GB, free: 16.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/1.015, allocations: 4 kB / 0.8284 GB, free: 16.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/1.017, allocations: 335.5 kB / 0.8288 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003275/1.017, allocations: 138.1 kB / 0.8289 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/1.017, allocations: 51.66 kB / 0.8289 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/1.019, allocations: 2.316 MB / 0.8312 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.019, allocations: 11.94 kB / 0.8312 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005521/1.024, allocations: 5.796 MB / 0.8369 GB, free: 7.906 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009516/1.025, allocations: 0.4913 MB / 0.8373 GB, free: 7.414 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003768/1.026, allocations: 36.88 kB / 0.8374 GB, free: 7.379 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/1.027, allocations: 108.7 kB / 0.8375 GB, free: 7.305 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/1.027, allocations: 131.1 kB / 0.8376 GB, free: 7.223 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/1.027, allocations: 71.5 kB / 0.8377 GB, free: 7.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003763/1.031, allocations: 3.171 MB / 0.8408 GB, free: 4.523 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.031, allocations: 0 / 0.8408 GB, free: 4.523 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00479/1.036, allocations: 1.173 MB / 0.8419 GB, free: 3.359 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (171): * Single equations (assignments): 163 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006801/1.043, allocations: 7.537 MB / 0.8493 GB, free: 12.35 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007936/1.051, allocations: 5.762 MB / 0.8549 GB, free: 7.254 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.051, allocations: 0 / 0.8549 GB, free: 7.254 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/1.053, allocations: 1.531 MB / 0.8564 GB, free: 5.887 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/1.055, allocations: 0.5215 MB / 0.8569 GB, free: 5.449 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2654/1.32, allocations: 160.7 MB / 1.014 GB, free: 32.53 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005346/1.326, allocations: 4.248 MB / 1.018 GB, free: 31.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005614/1.331, allocations: 2.475 MB / 1.02 GB, free: 31.53 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002997/1.334, allocations: 2.444 MB / 1.023 GB, free: 31.52 MB / 0.4948 GB Notification: Performance of SimCode: time 5.51e-07/1.334, allocations: 0 / 1.023 GB, free: 31.52 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2965/1.631, allocations: 91.19 MB / 1.112 GB, free: 136.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001396/1.631, allocations: 192.5 kB / 1.112 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.911/5.542, allocations: 0 / 1.112 GB, free: 136.6 MB / 0.4948 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PendulumExcited_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PendulumExcited.fmu > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)