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.001013/0.001013, allocations: 174.1 kB / 12.73 MB, free: 2.59 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.372/1.372, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008969/0.0008971, allocations: 88.16 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04107/0.04107, allocations: 8.832 MB / 345.3 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.641e-05/4.654e-05, allocations: 7.984 kB / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 52.39 MB / 458.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4563/0.5577, allocations: 95.68 MB / 0.5407 GB, free: 6.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.5579, allocations: 72.22 kB / 0.5408 GB, free: 6.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6043/1.162, allocations: 110.5 MB / 0.6488 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.569e-06/1.162, allocations: 1.312 kB / 0.6488 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005626/1.163, allocations: 94.23 kB / 0.6489 GB, free: 100.9 MB / 458.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.02588/1.189, allocations: 4.938 MB / 0.6537 GB, free: 99.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.305e-05/1.189, allocations: 9.953 kB / 0.6537 GB, free: 99.62 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006969/1.196, allocations: 1.033 MB / 0.6547 GB, free: 99.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02144/1.217, allocations: 3.741 MB / 0.6584 GB, free: 99.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/1.229, allocations: 2.916 MB / 0.6612 GB, free: 98.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009998/1.23, allocations: 403.9 kB / 0.6616 GB, free: 98.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004306/1.235, allocations: 0.509 MB / 0.6621 GB, free: 98.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03651/1.271, allocations: 14.33 MB / 0.6761 GB, free: 95.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003419/1.271, allocations: 58.06 kB / 0.6761 GB, free: 95.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002835/1.274, allocations: 257.9 kB / 0.6764 GB, free: 95.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002225/1.277, allocations: 1.626 MB / 0.678 GB, free: 95.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02512/1.302, allocations: 12.86 MB / 0.6905 GB, free: 95.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07439/1.376, allocations: 57.62 MB / 0.7468 GB, free: 53.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008301/1.384, allocations: 4.076 MB / 0.7508 GB, free: 50.97 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/1.387, allocations: 1.403 MB / 0.7521 GB, free: 50.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01118/1.398, allocations: 6.412 MB / 0.7584 GB, free: 45.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/1.398, allocations: 55.81 kB / 0.7585 GB, free: 45.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 6.302e-06/1.398, allocations: 3.938 kB / 0.7585 GB, free: 45.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.022/1.42, allocations: 8.368 MB / 0.7666 GB, free: 37.64 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/1.42, allocations: 157.5 kB / 0.7668 GB, free: 37.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01305/1.433, allocations: 4.479 MB / 0.7712 GB, free: 33.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006753/1.434, allocations: 49.7 kB / 0.7712 GB, free: 33.4 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003948/1.438, allocations: 4.03 MB / 0.7751 GB, free: 29.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/1.439, allocations: 0.8964 MB / 0.776 GB, free: 29.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000615/1.44, allocations: 155.9 kB / 0.7762 GB, free: 28.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003824/1.44, allocations: 0.6362 MB / 0.7768 GB, free: 28.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003631/1.444, allocations: 2.369 MB / 0.7791 GB, free: 26.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005578/1.45, allocations: 7.225 MB / 0.7862 GB, free: 16.85 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00625/1.456, allocations: 4.258 MB / 0.7903 GB, free: 13.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001491/1.456, allocations: 48 kB / 0.7904 GB, free: 13.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=1031) (initialization): time 0.0195/1.476, allocations: 9.413 MB / 0.7995 GB, free: 4.738 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/1.476, allocations: 76 kB / 0.7996 GB, free: 4.664 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002338/1.476, allocations: 176 kB / 0.7998 GB, free: 4.492 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007203/1.477, allocations: 384.1 kB / 0.8002 GB, free: 4.145 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006214/1.483, allocations: 1.802 MB / 0.8019 GB, free: 2.562 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/1.487, allocations: 2.876 MB / 0.8047 GB, free: 0 / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007565/1.495, allocations: 431.6 kB / 0.8051 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/1.497, allocations: 493.8 kB / 0.8056 GB, free: 15.21 MB / 474.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 () * 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.003231/1.5, allocations: 0.6989 MB / 0.8063 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001882/1.502, allocations: 406.7 kB / 0.8067 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008538/1.511, allocations: 2.447 MB / 0.8091 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001805/1.511, allocations: 39.58 kB / 0.8091 GB, free: 11.97 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-05/1.511, allocations: 4 kB / 0.8091 GB, free: 11.97 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-05/1.511, allocations: 9.891 kB / 0.8091 GB, free: 11.97 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/1.535, allocations: 8.426 MB / 0.8173 GB, free: 4.707 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.068e-05/1.535, allocations: 11.98 kB / 0.8174 GB, free: 4.695 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/1.537, allocations: 331.5 kB / 0.8177 GB, free: 4.371 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004842/1.537, allocations: 136.7 kB / 0.8178 GB, free: 4.234 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002796/1.538, allocations: 48.17 kB / 0.8178 GB, free: 4.188 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/1.54, allocations: 2.273 MB / 0.8201 GB, free: 1.789 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/1.54, allocations: 7.906 kB / 0.8201 GB, free: 1.785 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3284/1.869, allocations: 5.655 MB / 0.8256 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/1.871, allocations: 495.6 kB / 0.8261 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001308/1.872, allocations: 38.92 kB / 0.8261 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002467/1.874, allocations: 109 kB / 0.8262 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004479/1.875, allocations: 129.2 kB / 0.8263 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.875, allocations: 71.34 kB / 0.8264 GB, free: 102.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008076/1.883, allocations: 3.119 MB / 0.8295 GB, free: 102.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.883, allocations: 1.781 kB / 0.8295 GB, free: 102.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009012/1.892, allocations: 1.181 MB / 0.8306 GB, free: 102.4 MB / 474.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 () * 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.01079/1.903, allocations: 7.354 MB / 0.8378 GB, free: 99.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01157/1.915, allocations: 5.632 MB / 0.8433 GB, free: 99.44 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/1.915, allocations: 0 / 0.8433 GB, free: 99.44 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002676/1.917, allocations: 1.479 MB / 0.8447 GB, free: 99.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004402/1.922, allocations: 0.523 MB / 0.8452 GB, free: 99.29 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03869/1.961, allocations: 11.27 MB / 0.8562 GB, free: 97.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009764/1.97, allocations: 4.234 MB / 0.8604 GB, free: 96.41 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009072/1.979, allocations: 2.478 MB / 0.8628 GB, free: 96.36 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005711/1.985, allocations: 2.442 MB / 0.8652 GB, free: 96.36 MB / 474.7 MB Notification: Performance of SimCode: time 2.966e-06/1.985, allocations: 0 / 0.8652 GB, free: 96.36 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1531/2.138, allocations: 91.78 MB / 0.9548 GB, free: 36.59 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/2.139, allocations: 169.5 kB / 0.955 GB, free: 36.36 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.747/6.885, allocations: 0 / 0.955 GB, free: 36.36 MB / 474.7 MB (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)