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.00531/0.00531, allocations: 99.62 kB / 15.73 MB, free: 6.445 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.001288/0.001288, allocations: 190.8 kB / 16.67 MB, free: 6.348 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1894/0.1894, allocations: 9.13 MB / 299.7 MB, free: 1.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 63.84 kB / 414.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2388, allocations: 51.42 MB / 466.1 MB, free: 18.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.009041/0.2479, allocations: 8.511 MB / 474.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005158/0.2531, allocations: 2.608 MB / 477.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007814/0.2539, allocations: 34.19 kB / 477.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007242/0.2546, allocations: 369.7 kB / 477.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002304/0.257, allocations: 1.383 MB / 479 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.2573, allocations: 149 kB / 479.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.2591, allocations: 2.518 MB / 481.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00083/0.26, allocations: 1.009 MB / 482.6 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007673/0.2607, allocations: 0.9061 MB / 483.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.2619, allocations: 1.324 MB / 484.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003207/0.2622, allocations: 243.3 kB / 485.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.2634, allocations: 0.8288 MB / 485.9 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007816/0.2642, allocations: 1.221 MB / 487.2 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.2653, allocations: 1.593 MB / 488.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004227/0.2695, allocations: 5.087 MB / 493.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2696, allocations: 4 kB / 493.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2696, allocations: 5.031 kB / 493.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.005e-05/0.2696, allocations: 4 kB / 493.9 MB, free: 15.86 MB / 366.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.00825/0.2779, allocations: 4.363 MB / 498.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2779, allocations: 8.031 kB / 498.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006018/0.284, allocations: 1.785 MB / 0.4883 GB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002017/0.286, allocations: 1.351 MB / 0.4896 GB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.733e-05/0.2861, allocations: 148 kB / 0.4898 GB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003386/0.2864, allocations: 200.2 kB / 0.4899 GB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01037/0.2968, allocations: 8.196 MB / 0.498 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.895e-05/0.2969, allocations: 19.81 kB / 0.498 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002782/0.2972, allocations: 95.84 kB / 0.4981 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002947/0.3001, allocations: 1.915 MB / 0.4999 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01309/0.3132, allocations: 7.431 MB / 0.5072 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03674/0.35, allocations: 24.86 MB / 0.5315 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005889/0.3559, allocations: 2.406 MB / 0.5338 GB, free: 10.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.3575, allocations: 0.8644 MB / 0.5347 GB, free: 9.547 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006594/0.3641, allocations: 4.439 MB / 0.539 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.3641, allocations: 47.55 kB / 0.539 GB, free: 4.637 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.387e-06/0.3642, allocations: 0 / 0.539 GB, free: 4.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01144/0.3756, allocations: 4.701 MB / 0.5436 GB, free: 15.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.3757, allocations: 68.34 kB / 0.5437 GB, free: 15.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004867/0.3806, allocations: 2.485 MB / 0.5461 GB, free: 13.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/0.3808, allocations: 57.64 kB / 0.5462 GB, free: 13.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/0.3824, allocations: 2.161 MB / 0.5483 GB, free: 11.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000601/0.383, allocations: 0.5542 MB / 0.5488 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001323/0.3843, allocations: 0.7467 MB / 0.5496 GB, free: 9.777 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.3844, allocations: 305.1 kB / 0.5498 GB, free: 9.477 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.3867, allocations: 1.237 MB / 0.5511 GB, free: 8.238 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003347/0.39, allocations: 3.302 MB / 0.5543 GB, free: 3.926 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005803/0.3958, allocations: 4.888 MB / 0.559 GB, free: 14.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.779e-05/0.3959, allocations: 20 kB / 0.5591 GB, free: 14.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.008324/0.4043, allocations: 4.661 MB / 0.5636 GB, free: 9.344 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.78e-05/0.4044, allocations: 36 kB / 0.5637 GB, free: 9.309 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/0.4045, allocations: 72 kB / 0.5637 GB, free: 9.238 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006166/0.4051, allocations: 228.7 kB / 0.5639 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00255/0.4077, allocations: 0.8268 MB / 0.5647 GB, free: 8.184 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/0.4108, allocations: 2.849 MB / 0.5675 GB, free: 5.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/0.4138, allocations: 188 kB / 0.5677 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005449/0.4143, allocations: 228 kB / 0.5679 GB, free: 4.785 MB / 446.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.003238/0.4176, allocations: 1.572 MB / 0.5695 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004682/0.4181, allocations: 222.5 kB / 0.5697 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.4217, allocations: 1.94 MB / 0.5716 GB, free: 1.031 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/0.4218, allocations: 23.98 kB / 0.5716 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.4218, allocations: 3.938 kB / 0.5716 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.4219, allocations: 11.97 kB / 0.5716 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.4343, allocations: 5.818 MB / 0.5773 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.4344, allocations: 7.984 kB / 0.5773 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009518/0.4354, allocations: 216.1 kB / 0.5775 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000412/0.4358, allocations: 132.8 kB / 0.5776 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.4359, allocations: 39.98 kB / 0.5777 GB, free: 10.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002887/0.4388, allocations: 2.514 MB / 0.5801 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/0.4389, allocations: 12.11 kB / 0.5801 GB, free: 7.973 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005049/0.4439, allocations: 3.073 MB / 0.5831 GB, free: 4.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000864/0.4448, allocations: 291.6 kB / 0.5834 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005948/0.4454, allocations: 31.92 kB / 0.5834 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.4466, allocations: 75.98 kB / 0.5835 GB, free: 4.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.4468, allocations: 88.75 kB / 0.5836 GB, free: 4.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.4469, allocations: 47.97 kB / 0.5836 GB, free: 4.293 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003304/0.4502, allocations: 1.603 MB / 0.5852 GB, free: 2.672 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4502, allocations: 0 / 0.5852 GB, free: 2.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003853/0.4541, allocations: 0.6562 MB / 0.5859 GB, free: 2.016 MB / 462.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.0004442/0.4546, allocations: 156.4 kB / 0.586 GB, free: 1.852 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2325/0.6871, allocations: 3.021 MB / 0.589 GB, free: 114.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.6871, allocations: 0.875 kB / 0.589 GB, free: 114.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.6887, allocations: 1.01 MB / 0.5899 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/0.6908, allocations: 405.4 kB / 0.5903 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.7012, allocations: 6.418 MB / 0.5966 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002647/0.7039, allocations: 2.592 MB / 0.5991 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002797/0.7067, allocations: 1.144 MB / 0.6002 GB, free: 110.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/0.7071, allocations: 163.8 kB / 0.6004 GB, free: 110.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.7072, allocations: 0 / 0.6004 GB, free: 110.1 MB / 462.1 MB Notification: Performance of Templates: time 0.03625/0.7434, allocations: 24.1 MB / 0.6239 GB, free: 97.77 MB / 462.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)