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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 197.9 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1849/0.1849, allocations: 9.115 MB / 299.1 MB, free: 1.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.89 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 51.44 MB / 412.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2526/0.3591, allocations: 30.98 MB / 443.7 MB, free: 26.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.3767, allocations: 6.836 MB / 450.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008836/0.3856, allocations: 116.5 kB / 450.6 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001718/0.3873, allocations: 307.6 kB / 450.9 MB, free: 21.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004404/0.3919, allocations: 1.287 MB / 452.2 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005103/0.3924, allocations: 133.2 kB / 452.3 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003724/0.3961, allocations: 3.472 MB / 455.8 MB, free: 19.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.3973, allocations: 0.9138 MB / 456.7 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.3984, allocations: 0.7758 MB / 457.5 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.3999, allocations: 1.324 MB / 458.8 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002772/0.4002, allocations: 142.5 kB / 459 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001428/0.4016, allocations: 0.7814 MB / 459.8 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009134/0.4025, allocations: 1.133 MB / 460.9 MB, free: 18.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.4036, allocations: 1.507 MB / 462.4 MB, free: 17.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003807/0.4075, allocations: 4.684 MB / 467.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.4075, allocations: 2.953 kB / 467.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4075, allocations: 0 / 467.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.059e-05/0.4076, allocations: 0 / 467.1 MB, free: 15.31 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01022/0.4178, allocations: 4.278 MB / 471.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.579e-05/0.4179, allocations: 16.67 kB / 471.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007073/0.4249, allocations: 1.762 MB / 473.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003924/0.4289, allocations: 1.339 MB / 474.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000269/0.4292, allocations: 149.4 kB / 474.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.4305, allocations: 195.4 kB / 474.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02139/0.4519, allocations: 8.2 MB / 483 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000187/0.4521, allocations: 21.27 kB / 483 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001077/0.4532, allocations: 92.61 kB / 483.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004285/0.4575, allocations: 1.91 MB / 485 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/0.4759, allocations: 7.43 MB / 492.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04682/0.5228, allocations: 24.91 MB / 0.5052 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006122/0.5289, allocations: 2.422 MB / 0.5076 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001974/0.5309, allocations: 0.8598 MB / 0.5084 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007722/0.5387, allocations: 4.428 MB / 0.5128 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.5388, allocations: 47.55 kB / 0.5128 GB, free: 3.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 4.007e-06/0.5388, allocations: 0 / 0.5128 GB, free: 3.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01224/0.551, allocations: 4.652 MB / 0.5174 GB, free: 14.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.5511, allocations: 64.41 kB / 0.5174 GB, free: 14.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004928/0.5561, allocations: 2.48 MB / 0.5198 GB, free: 11.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/0.5562, allocations: 53.7 kB / 0.5199 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/0.5579, allocations: 2.074 MB / 0.5219 GB, free: 9.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006119/0.5586, allocations: 0.5281 MB / 0.5224 GB, free: 9.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/0.5599, allocations: 0.7422 MB / 0.5232 GB, free: 8.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.56, allocations: 309.1 kB / 0.5235 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/0.5622, allocations: 1.237 MB / 0.5247 GB, free: 6.906 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003976/0.5662, allocations: 3.298 MB / 0.5279 GB, free: 2.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006473/0.5727, allocations: 4.885 MB / 0.5327 GB, free: 12.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.95e-05/0.5728, allocations: 20 kB / 0.5327 GB, free: 12.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008815/0.5816, allocations: 4.643 MB / 0.5372 GB, free: 8.031 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.758e-05/0.5817, allocations: 38.03 kB / 0.5372 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/0.5819, allocations: 72 kB / 0.5373 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007102/0.5826, allocations: 232.7 kB / 0.5375 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/0.5852, allocations: 0.8232 MB / 0.5383 GB, free: 6.871 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/0.5885, allocations: 2.627 MB / 0.5409 GB, free: 4.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002991/0.5915, allocations: 192 kB / 0.5411 GB, free: 3.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005288/0.5921, allocations: 231.9 kB / 0.5413 GB, free: 3.688 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (445): * Single equations (assignments): 440 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003488/0.5956, allocations: 1.572 MB / 0.5428 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006064/0.5962, allocations: 213.1 kB / 0.543 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003784/0.6, allocations: 1.936 MB / 0.5449 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/0.6001, allocations: 31.98 kB / 0.545 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.6001, allocations: 0 / 0.545 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.6001, allocations: 3.984 kB / 0.545 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.612, allocations: 5.848 MB / 0.5507 GB, free: 9.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.6121, allocations: 8.062 kB / 0.5507 GB, free: 9.918 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009158/0.613, allocations: 211.7 kB / 0.5509 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004178/0.6134, allocations: 136.7 kB / 0.551 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.6136, allocations: 35.92 kB / 0.5511 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002472/0.616, allocations: 2.289 MB / 0.5533 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.6161, allocations: 4 kB / 0.5533 GB, free: 7.109 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004829/0.6209, allocations: 3.059 MB / 0.5563 GB, free: 3.984 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008283/0.6217, allocations: 290.4 kB / 0.5566 GB, free: 3.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005751/0.6223, allocations: 27.98 kB / 0.5566 GB, free: 3.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.6235, allocations: 67.98 kB / 0.5567 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.6238, allocations: 96.75 kB / 0.5567 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.624, allocations: 43.98 kB / 0.5568 GB, free: 3.445 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003487/0.6274, allocations: 1.6 MB / 0.5584 GB, free: 1.828 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6275, allocations: 4 kB / 0.5584 GB, free: 1.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003705/0.6312, allocations: 0.6523 MB / 0.559 GB, free: 1.172 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (109): * Single equations (assignments): 104 * 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,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004411/0.6316, allocations: 155 kB / 0.5591 GB, free: 1.012 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005903/0.6375, allocations: 3.014 MB / 0.5621 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6376, allocations: 1.312 kB / 0.5621 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001687/0.6393, allocations: 1.012 MB / 0.5631 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/0.642, allocations: 386.9 kB / 0.5634 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.657, allocations: 7.933 MB / 0.5712 GB, free: 4.602 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004185/0.6612, allocations: 2.598 MB / 0.5737 GB, free: 1.969 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003368/0.6646, allocations: 1.133 MB / 0.5748 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/0.6653, allocations: 167.4 kB / 0.575 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6653, allocations: 3.938 kB / 0.575 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of Templates: time 0.2495/0.9148, allocations: 23.62 MB / 0.5981 GB, free: 122.2 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)