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.001027/0.001027, allocations: 174.7 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.176/1.176, allocations: 221.4 MB / 234.6 MB, free: 14.43 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.0007868/0.0007869, allocations: 84.94 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.03797/0.03797, allocations: 8.839 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.926e-05/1.929e-05, allocations: 4 kB / 405.6 MB, free: 61.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06992/0.06995, allocations: 52.39 MB / 458 MB, free: 9.047 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2818/0.3518, allocations: 85.97 MB / 0.5312 GB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001707/0.352, allocations: 73.95 kB / 0.5312 GB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1241/0.4762, allocations: 54.55 MB / 0.5845 GB, free: 15.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4762, allocations: 0 / 0.5845 GB, free: 15.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.07e-05/0.4763, allocations: 44 kB / 0.5846 GB, free: 15.4 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.006714/0.483, allocations: 2.604 MB / 0.5871 GB, free: 12.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.4831, allocations: 12.03 kB / 0.5871 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007767/0.4909, allocations: 1.88 MB / 0.5889 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/0.4937, allocations: 1.525 MB / 0.5904 GB, free: 9.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.4938, allocations: 196.9 kB / 0.5906 GB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004875/0.4943, allocations: 251.8 kB / 0.5909 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009982/0.5043, allocations: 6.738 MB / 0.5974 GB, free: 1.789 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.548e-05/0.5044, allocations: 15.88 kB / 0.5975 GB, free: 1.773 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003496/0.5047, allocations: 115.9 kB / 0.5976 GB, free: 1.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009972/0.5057, allocations: 0.7899 MB / 0.5983 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008981/0.5147, allocations: 6.39 MB / 0.6046 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02357/0.5383, allocations: 21.17 MB / 0.6253 GB, free: 4.871 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003381/0.5417, allocations: 1.98 MB / 0.6272 GB, free: 2.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008169/0.5426, allocations: 0.6439 MB / 0.6278 GB, free: 2.125 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004205/0.5468, allocations: 3.289 MB / 0.631 GB, free: 14.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.5468, allocations: 39.34 kB / 0.6311 GB, free: 14.51 MB / 458.7 MB Notification: Performance of pre-optimization done (n=106): time 2.845e-06/0.5468, allocations: 0 / 0.6311 GB, free: 14.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=120): time 0.008573/0.5554, allocations: 4.903 MB / 0.6359 GB, free: 9.508 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.5555, allocations: 60.19 kB / 0.6359 GB, free: 9.438 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/0.558, allocations: 2.022 MB / 0.6379 GB, free: 7.367 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.203e-05/0.5581, allocations: 37.7 kB / 0.6379 GB, free: 7.324 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009867/0.5591, allocations: 1.825 MB / 0.6397 GB, free: 5.469 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.5594, allocations: 461.8 kB / 0.6401 GB, free: 5.012 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.5595, allocations: 71.98 kB / 0.6402 GB, free: 4.941 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.5597, allocations: 445.1 kB / 0.6406 GB, free: 4.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.5611, allocations: 1.041 MB / 0.6417 GB, free: 3.457 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2018/0.7629, allocations: 2.889 MB / 0.6445 GB, free: 127.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003066/0.766, allocations: 1.776 MB / 0.6462 GB, free: 127.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.75e-05/0.7661, allocations: 19.44 kB / 0.6462 GB, free: 127.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.00703/0.7731, allocations: 4.01 MB / 0.6501 GB, free: 127 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.7732, allocations: 38.28 kB / 0.6502 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.131e-05/0.7733, allocations: 65 kB / 0.6502 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.7738, allocations: 212.1 kB / 0.6504 GB, free: 127 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002187/0.776, allocations: 0.7369 MB / 0.6512 GB, free: 126.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.7784, allocations: 2.454 MB / 0.6536 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.7805, allocations: 163.3 kB / 0.6537 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.7808, allocations: 199 kB / 0.6539 GB, free: 125.5 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 () * 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.0003566/0.7812, allocations: 344.6 kB / 0.6542 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.7814, allocations: 195.6 kB / 0.6544 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002478/0.7839, allocations: 1.553 MB / 0.6559 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/0.784, allocations: 23.55 kB / 0.656 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.784, allocations: 2.188 kB / 0.656 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.7841, allocations: 4.5 kB / 0.656 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007937/0.792, allocations: 4.817 MB / 0.6607 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.792, allocations: 6.219 kB / 0.6607 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006487/0.7927, allocations: 165.6 kB / 0.6608 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003327/0.793, allocations: 112.2 kB / 0.6609 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.383e-05/0.7931, allocations: 23.22 kB / 0.661 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001794/0.7949, allocations: 1.986 MB / 0.6629 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.7949, allocations: 3 kB / 0.6629 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002665/0.7976, allocations: 2.646 MB / 0.6655 GB, free: 122.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004681/0.7981, allocations: 278 kB / 0.6658 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.7983, allocations: 22.8 kB / 0.6658 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007325/0.799, allocations: 51.61 kB / 0.6658 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.7992, allocations: 68.55 kB / 0.6659 GB, free: 122.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.385e-05/0.7992, allocations: 37.2 kB / 0.6659 GB, free: 122.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002064/0.8013, allocations: 1.433 MB / 0.6673 GB, free: 122.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.8013, allocations: 0 / 0.6673 GB, free: 122.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002496/0.8038, allocations: 0.583 MB / 0.6679 GB, free: 122.5 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 () * 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.0002777/0.8041, allocations: 163.8 kB / 0.6681 GB, free: 122.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.807, allocations: 2.55 MB / 0.6705 GB, free: 121.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.807, allocations: 0 / 0.6705 GB, free: 121.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007739/0.8078, allocations: 0.7893 MB / 0.6713 GB, free: 121.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.8089, allocations: 300 kB / 0.6716 GB, free: 121.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005704/0.8147, allocations: 4.491 MB / 0.676 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001727/0.8164, allocations: 2.414 MB / 0.6783 GB, free: 118.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002075/0.8185, allocations: 1.042 MB / 0.6794 GB, free: 118.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002924/0.8188, allocations: 147 kB / 0.6795 GB, free: 118.3 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/0.8188, allocations: 0 / 0.6795 GB, free: 118.3 MB / 458.7 MB Notification: Performance of Templates: time 0.02839/0.8472, allocations: 20.15 MB / 0.6992 GB, free: 116 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)