Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009331/0.0009332, allocations: 170.5 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 221.5 MB / 229.6 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009018/0.0009014, allocations: 88.3 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03642/0.03642, allocations: 8.826 MB / 340.1 MB, free: 6.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.44e-05/1.442e-05, allocations: 1.781 kB / 398.7 MB, free: 47.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 52.39 MB / 451.1 MB, free: 4.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3728/0.4745, allocations: 85.32 MB / 0.5238 GB, free: 26.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.4748, allocations: 71.14 kB / 0.5239 GB, free: 26.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1441/0.6189, allocations: 61.71 MB / 0.5841 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6189, allocations: 0 / 0.5841 GB, free: 12.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001432/0.6191, allocations: 50.78 kB / 0.5842 GB, free: 12.41 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01287/0.632, allocations: 3.257 MB / 0.5874 GB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.632, allocations: 15.8 kB / 0.5874 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01005/0.6421, allocations: 1.939 MB / 0.5893 GB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00504/0.6472, allocations: 1.697 MB / 0.5909 GB, free: 8.855 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002328/0.6474, allocations: 94.25 kB / 0.591 GB, free: 8.855 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.6495, allocations: 173 kB / 0.5912 GB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009846/0.6594, allocations: 5.419 MB / 0.5965 GB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/0.6809, allocations: 7.2 MB / 0.6035 GB, free: 488 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.681, allocations: 27.72 kB / 0.6035 GB, free: 460 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006927/0.6817, allocations: 16 kB / 0.6036 GB, free: 444 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001342/0.6831, allocations: 0.9194 MB / 0.6045 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0367/0.7198, allocations: 25.1 MB / 0.629 GB, free: 5.797 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003781/0.7236, allocations: 2.308 MB / 0.6312 GB, free: 3.363 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.725, allocations: 0.8061 MB / 0.632 GB, free: 2.559 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006676/0.7317, allocations: 4.274 MB / 0.6362 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.7318, allocations: 47.81 kB / 0.6362 GB, free: 13.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 4.819e-06/0.7318, allocations: 0 / 0.6362 GB, free: 13.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.009957/0.7417, allocations: 4.15 MB / 0.6403 GB, free: 9.676 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.7418, allocations: 68.72 kB / 0.6404 GB, free: 9.598 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00541/0.7473, allocations: 1.928 MB / 0.6422 GB, free: 7.629 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.7475, allocations: 25.7 kB / 0.6423 GB, free: 7.598 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002661/0.7502, allocations: 2.177 MB / 0.6444 GB, free: 5.387 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009674/0.7512, allocations: 0.6128 MB / 0.645 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.7515, allocations: 0 / 0.645 GB, free: 4.766 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004536/0.7519, allocations: 0.52 MB / 0.6455 GB, free: 4.234 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00282/0.7548, allocations: 1.301 MB / 0.6468 GB, free: 2.926 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004974/0.7597, allocations: 3.66 MB / 0.6503 GB, free: 14.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00336/0.7631, allocations: 2.238 MB / 0.6525 GB, free: 11.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.624e-05/0.7632, allocations: 24 kB / 0.6525 GB, free: 11.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01323/0.7765, allocations: 4.776 MB / 0.6572 GB, free: 7.035 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.795e-05/0.7766, allocations: 40 kB / 0.6572 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.7767, allocations: 84.84 kB / 0.6573 GB, free: 6.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.778, allocations: 369.3 kB / 0.6577 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004846/0.7829, allocations: 0.963 MB / 0.6586 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005302/0.7882, allocations: 3.71 MB / 0.6622 GB, free: 1.762 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003325/0.7916, allocations: 131.9 kB / 0.6624 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008119/0.7924, allocations: 260 kB / 0.6626 GB, free: 1.379 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 382 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (522): * Single equations (assignments): 517 * 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 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006851/0.7931, allocations: 325 kB / 0.6629 GB, free: 1.055 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003884/0.7935, allocations: 201.4 kB / 0.6631 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003596/0.7971, allocations: 2.062 MB / 0.6651 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001196/0.7972, allocations: 27.98 kB / 0.6652 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.7972, allocations: 7.953 kB / 0.6652 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-05/0.7973, allocations: 7.969 kB / 0.6652 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.8074, allocations: 5.249 MB / 0.6703 GB, free: 9.387 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.8075, allocations: 0 / 0.6703 GB, free: 9.387 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009217/0.8084, allocations: 239.9 kB / 0.6705 GB, free: 9.152 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006565/0.8091, allocations: 244.7 kB / 0.6708 GB, free: 8.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.307e-05/0.8092, allocations: 12 kB / 0.6708 GB, free: 8.898 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003572/0.8128, allocations: 3.006 MB / 0.6737 GB, free: 5.777 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/0.8128, allocations: 0 / 0.6737 GB, free: 5.777 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004843/0.8177, allocations: 3.404 MB / 0.677 GB, free: 2.238 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007161/0.8184, allocations: 282.4 kB / 0.6773 GB, free: 1.941 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002226/0.8186, allocations: 11.98 kB / 0.6773 GB, free: 1.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/0.8194, allocations: 51.91 kB / 0.6774 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.8196, allocations: 93.14 kB / 0.6775 GB, free: 1.789 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.951e-05/0.8197, allocations: 47.98 kB / 0.6775 GB, free: 1.742 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002176/0.8219, allocations: 1.285 MB / 0.6788 GB, free: 444 kB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8219, allocations: 0 / 0.6788 GB, free: 444 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.003287/0.8252, allocations: 0.6289 MB / 0.6794 GB, free: 15.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003684/0.8256, allocations: 142.8 kB / 0.6795 GB, free: 15.65 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004941/0.8305, allocations: 3.176 MB / 0.6826 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.8305, allocations: 0 / 0.6826 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.8319, allocations: 1.043 MB / 0.6836 GB, free: 11.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.8331, allocations: 211 kB / 0.6838 GB, free: 11.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.8434, allocations: 5.381 MB / 0.6891 GB, free: 5.777 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003149/0.8466, allocations: 2.675 MB / 0.6917 GB, free: 3.07 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003259/0.8499, allocations: 1.269 MB / 0.6929 GB, free: 1.793 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.8503, allocations: 163.3 kB / 0.6931 GB, free: 1.633 MB / 458.7 MB Notification: Performance of SimCode: time 6.62e-07/0.8503, allocations: 0 / 0.6931 GB, free: 1.633 MB / 458.7 MB Notification: Performance of Templates: time 0.257/1.107, allocations: 20.08 MB / 0.7127 GB, free: 124.7 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)