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.001087/0.001087, allocations: 183.1 kB / 15.98 MB, free: 5.77 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.23/1.23, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.0009724/0.0009725, allocations: 106.4 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.05468/0.05468, allocations: 8.941 MB / 349 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009343/0.0009344, allocations: 55.31 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08179, allocations: 51.4 MB / 462.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.0142/0.09603, allocations: 18.25 MB / 480.8 MB, free: 3.383 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.1927/0.2887, allocations: 4.446 MB / 485.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003507/0.2923, allocations: 65.78 kB / 485.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009046/0.2933, allocations: 262.5 kB / 485.5 MB, free: 10.83 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003109/0.2964, allocations: 1.196 MB / 486.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.2967, allocations: 70.17 kB / 486.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004285/0.301, allocations: 3.057 MB / 489.8 MB, free: 10.78 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.3029, allocations: 0.6599 MB / 490.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.3045, allocations: 0.6317 MB / 491.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.3062, allocations: 1.133 MB / 492.3 MB, free: 10.51 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003769/0.3066, allocations: 112.9 kB / 492.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.3083, allocations: 0.748 MB / 493.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.3094, allocations: 0.991 MB / 494.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.3106, allocations: 1.28 MB / 495.4 MB, free: 9.434 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004894/0.3155, allocations: 4.143 MB / 499.5 MB, free: 7.547 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3155, allocations: 1.094 kB / 499.5 MB, free: 7.547 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3155, allocations: 0 / 499.5 MB, free: 7.547 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001012/0.3156, allocations: 0 / 499.5 MB, free: 7.547 MB / 314.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.007385/0.323, allocations: 3.364 MB / 0.4911 GB, free: 5.277 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.3231, allocations: 9.719 kB / 0.4911 GB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006204/0.3293, allocations: 1.706 MB / 0.4928 GB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002662/0.332, allocations: 1.197 MB / 0.494 GB, free: 3.586 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.3321, allocations: 122.7 kB / 0.4941 GB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003568/0.3325, allocations: 159.6 kB / 0.4942 GB, free: 3.531 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009307/0.3418, allocations: 7.206 MB / 0.5013 GB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.056e-05/0.3419, allocations: 19.86 kB / 0.5013 GB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002241/0.3421, allocations: 74.39 kB / 0.5014 GB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002561/0.3447, allocations: 1.736 MB / 0.5031 GB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/0.3561, allocations: 6.587 MB / 0.5095 GB, free: 6.984 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03065/0.3868, allocations: 21.19 MB / 0.5302 GB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0039/0.3908, allocations: 2.017 MB / 0.5321 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3918, allocations: 0.6792 MB / 0.5328 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005023/0.3969, allocations: 3.269 MB / 0.536 GB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.3969, allocations: 43.22 kB / 0.536 GB, free: 11.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=106): time 3.045e-06/0.3969, allocations: 0 / 0.536 GB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=120): time 0.01028/0.4072, allocations: 5.531 MB / 0.5414 GB, free: 5.508 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.4073, allocations: 68.41 kB / 0.5415 GB, free: 5.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.4104, allocations: 2.266 MB / 0.5437 GB, free: 3.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.1e-05/0.4105, allocations: 37.7 kB / 0.5438 GB, free: 3.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.4117, allocations: 1.838 MB / 0.5456 GB, free: 1.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.4121, allocations: 458.8 kB / 0.546 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009013/0.413, allocations: 0.6615 MB / 0.5466 GB, free: 120 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4131, allocations: 301.1 kB / 0.5469 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.4148, allocations: 1.103 MB / 0.548 GB, free: 14.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/0.4176, allocations: 2.963 MB / 0.5509 GB, free: 10.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004681/0.4223, allocations: 4.371 MB / 0.5552 GB, free: 5.555 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.894e-05/0.4224, allocations: 20 kB / 0.5552 GB, free: 5.535 MB / 378.7 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.006636/0.429, allocations: 4.148 MB / 0.5592 GB, free: 1.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.8e-05/0.4291, allocations: 37 kB / 0.5593 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.554e-05/0.4292, allocations: 67.94 kB / 0.5593 GB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005006/0.4297, allocations: 204.7 kB / 0.5595 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.4316, allocations: 0.7291 MB / 0.5602 GB, free: 360 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.4343, allocations: 2.463 MB / 0.5627 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/0.4364, allocations: 168 kB / 0.5628 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002435/0.4367, allocations: 203.9 kB / 0.563 GB, free: 13.39 MB / 394.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002167/0.4388, allocations: 1.42 MB / 0.5644 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002445/0.4391, allocations: 178.2 kB / 0.5646 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/0.4416, allocations: 1.629 MB / 0.5662 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.716e-05/0.4417, allocations: 23.98 kB / 0.5662 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.4417, allocations: 0 / 0.5662 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.4417, allocations: 7.922 kB / 0.5662 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007907/0.4496, allocations: 4.879 MB / 0.5709 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.4497, allocations: 7.938 kB / 0.571 GB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006173/0.4503, allocations: 171.6 kB / 0.5711 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003291/0.4506, allocations: 113.1 kB / 0.5712 GB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.464e-05/0.4507, allocations: 27.98 kB / 0.5713 GB, free: 4.824 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002027/0.4527, allocations: 1.994 MB / 0.5732 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4528, allocations: 4 kB / 0.5732 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01404/0.4668, allocations: 9.647 MB / 0.5826 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004044/0.4673, allocations: 262.7 kB / 0.5829 GB, free: 8.434 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/0.4675, allocations: 22.17 kB / 0.5829 GB, free: 8.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006314/0.4681, allocations: 51.94 kB / 0.5829 GB, free: 8.363 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.4683, allocations: 72.92 kB / 0.583 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.531e-05/0.4683, allocations: 39.98 kB / 0.5831 GB, free: 8.254 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00229/0.4706, allocations: 1.468 MB / 0.5845 GB, free: 6.762 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4707, allocations: 0 / 0.5845 GB, free: 6.762 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003304/0.474, allocations: 0.7178 MB / 0.5852 GB, free: 6.047 MB / 410.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 (88): * Single equations (assignments): 83 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003816/0.4744, allocations: 149 kB / 0.5853 GB, free: 5.895 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004174/0.4785, allocations: 2.633 MB / 0.5879 GB, free: 3.266 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4786, allocations: 0 / 0.5879 GB, free: 3.266 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.4797, allocations: 0.8291 MB / 0.5887 GB, free: 2.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.4813, allocations: 317 kB / 0.589 GB, free: 2.121 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.4937, allocations: 7.81 MB / 0.5966 GB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002507/0.4963, allocations: 2.403 MB / 0.599 GB, free: 7.785 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002733/0.499, allocations: 1.044 MB / 0.6 GB, free: 6.738 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003691/0.4994, allocations: 147.4 kB / 0.6001 GB, free: 6.594 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4994, allocations: 0 / 0.6001 GB, free: 6.594 MB / 426.7 MB Notification: Performance of Templates: time 0.03821/0.5376, allocations: 22.39 MB / 0.622 GB, free: 356 kB / 442.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)