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/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: translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") translateModel(PlanarMechanics.Examples.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.001289, allocations: 173.9 kB / 16.12 MB, free: 5.566 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.365/1.365, allocations: 223.3 MB / 240.1 MB, free: 9.957 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.0008281/0.000828, allocations: 91.22 kB / 291.3 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04746/0.04746, allocations: 8.946 MB / 351.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003565, allocations: 12 kB / 414.4 MB, free: 56.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09772, allocations: 52.38 MB / 466.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3389/0.4367, allocations: 86.03 MB / 0.5399 GB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.437, allocations: 75.22 kB / 0.5399 GB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.135/0.572, allocations: 54.06 MB / 0.5927 GB, free: 11.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5721, allocations: 4 kB / 0.5927 GB, free: 11.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001268/0.5722, allocations: 40 kB / 0.5928 GB, free: 11.21 MB / 410.7 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.009142/0.5814, allocations: 2.609 MB / 0.5953 GB, free: 8.547 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.5814, allocations: 12.03 kB / 0.5953 GB, free: 8.535 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008579/0.59, allocations: 1.889 MB / 0.5972 GB, free: 6.641 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00402/0.5941, allocations: 1.545 MB / 0.5987 GB, free: 5.051 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.5943, allocations: 189.3 kB / 0.5989 GB, free: 4.863 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001565/0.5959, allocations: 252.3 kB / 0.5991 GB, free: 4.617 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01619/0.6121, allocations: 6.794 MB / 0.6057 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001949/0.6124, allocations: 19.81 kB / 0.6057 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001328/0.6137, allocations: 119.9 kB / 0.6059 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001277/0.615, allocations: 0.7938 MB / 0.6066 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/0.628, allocations: 6.459 MB / 0.6129 GB, free: 6.113 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0359/0.664, allocations: 21.16 MB / 0.6336 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004045/0.6681, allocations: 2.023 MB / 0.6356 GB, free: 14.39 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.6692, allocations: 0.666 MB / 0.6362 GB, free: 13.72 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004985/0.6742, allocations: 3.277 MB / 0.6394 GB, free: 10.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.6743, allocations: 43.16 kB / 0.6395 GB, free: 10.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 3.156e-06/0.6743, allocations: 0 / 0.6395 GB, free: 10.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=120): time 0.01109/0.6854, allocations: 5.461 MB / 0.6448 GB, free: 4.555 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.6854, allocations: 72.28 kB / 0.6449 GB, free: 4.473 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00386/0.6893, allocations: 2.246 MB / 0.6471 GB, free: 2.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.6894, allocations: 41.7 kB / 0.6471 GB, free: 2.133 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/0.6907, allocations: 1.841 MB / 0.6489 GB, free: 268 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2199/0.9107, allocations: 447.6 kB / 0.6493 GB, free: 129.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005817/0.9113, allocations: 64.03 kB / 0.6494 GB, free: 129.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005534/0.9119, allocations: 449.4 kB / 0.6498 GB, free: 128.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003149/0.915, allocations: 1.082 MB / 0.6509 GB, free: 128.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003769/0.9188, allocations: 2.938 MB / 0.6538 GB, free: 126.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005442/0.9243, allocations: 4.333 MB / 0.658 GB, free: 124.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001389/0.9245, allocations: 19.47 kB / 0.658 GB, free: 124.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.009071/0.9335, allocations: 4.086 MB / 0.662 GB, free: 123.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.715e-05/0.9336, allocations: 33.73 kB / 0.662 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001566/0.9338, allocations: 73.62 kB / 0.6621 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006236/0.9344, allocations: 207.3 kB / 0.6623 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/0.9369, allocations: 0.724 MB / 0.663 GB, free: 123.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.9396, allocations: 2.47 MB / 0.6654 GB, free: 122.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/0.942, allocations: 168.4 kB / 0.6656 GB, free: 122.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000315/0.9423, allocations: 204.8 kB / 0.6658 GB, free: 122.3 MB / 458.7 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 (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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00241/0.9447, allocations: 1.422 MB / 0.6672 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/0.945, allocations: 183.7 kB / 0.6673 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/0.9476, allocations: 1.587 MB / 0.6689 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.806e-05/0.9477, allocations: 28.89 kB / 0.6689 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.9477, allocations: 2.219 kB / 0.6689 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.9477, allocations: 8.625 kB / 0.6689 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007115/0.9548, allocations: 4.851 MB / 0.6737 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.9549, allocations: 3.875 kB / 0.6737 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.9554, allocations: 161 kB / 0.6738 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002917/0.9557, allocations: 114.7 kB / 0.6739 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.758e-05/0.9558, allocations: 23.09 kB / 0.6739 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/0.9574, allocations: 1.994 MB / 0.6759 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.9574, allocations: 3.219 kB / 0.6759 GB, free: 119.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.9602, allocations: 2.523 MB / 0.6784 GB, free: 118.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004564/0.9607, allocations: 274.7 kB / 0.6786 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.9609, allocations: 22.48 kB / 0.6786 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006004/0.9615, allocations: 56.58 kB / 0.6787 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.9616, allocations: 69.56 kB / 0.6788 GB, free: 118.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-05/0.9617, allocations: 36.11 kB / 0.6788 GB, free: 118.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00177/0.9634, allocations: 1.455 MB / 0.6802 GB, free: 117.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9634, allocations: 1.594 kB / 0.6802 GB, free: 117.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002528/0.966, allocations: 0.5759 MB / 0.6808 GB, free: 117.8 MB / 458.7 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 (87): * Single equations (assignments): 82 * Array equations: 4 * 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%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003296/0.9663, allocations: 164.1 kB / 0.6809 GB, free: 117.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00387/0.9702, allocations: 2.6 MB / 0.6835 GB, free: 116.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.9702, allocations: 0 / 0.6835 GB, free: 116.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.9712, allocations: 0.817 MB / 0.6843 GB, free: 116.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002151/0.9734, allocations: 317.8 kB / 0.6846 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008159/0.9816, allocations: 6.657 MB / 0.6911 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/0.9836, allocations: 2.366 MB / 0.6934 GB, free: 111.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002318/0.9859, allocations: 1.037 MB / 0.6944 GB, free: 111.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002996/0.9862, allocations: 140.1 kB / 0.6945 GB, free: 111.5 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/0.9862, allocations: 0 / 0.6945 GB, free: 111.5 MB / 458.7 MB Notification: Performance of Templates: time 0.03095/1.017, allocations: 20.21 MB / 0.7143 GB, free: 105.8 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1)