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.0009303/0.0009303, allocations: 95.38 kB / 15.37 MB, free: 0.7266 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.005328/0.005328, allocations: 177.8 kB / 16.27 MB, free: 6.34 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.19/0.19, allocations: 9.113 MB / 300.5 MB, free: 2.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003329, allocations: 8 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 52.43 MB / 416.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2437/0.3519, allocations: 30.08 MB / 446.2 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.3675, allocations: 6.798 MB / 453 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007482/0.375, allocations: 113.2 kB / 453.1 MB, free: 21.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.3766, allocations: 309.4 kB / 453.4 MB, free: 21.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004037/0.3806, allocations: 1.287 MB / 454.7 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.3811, allocations: 131.5 kB / 454.9 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003531/0.3847, allocations: 3.475 MB / 458.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.3859, allocations: 0.8935 MB / 459.2 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.3871, allocations: 0.761 MB / 460 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.3887, allocations: 1.302 MB / 461.3 MB, free: 18.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003089/0.389, allocations: 132.4 kB / 461.4 MB, free: 18.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.3903, allocations: 0.7647 MB / 462.2 MB, free: 18.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008974/0.3913, allocations: 1.146 MB / 463.3 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.3924, allocations: 1.505 MB / 464.8 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004021/0.3964, allocations: 4.575 MB / 469.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3965, allocations: 4 kB / 469.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3965, allocations: 0 / 469.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.3966, allocations: 0 / 469.4 MB, free: 15.4 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.009584/0.4062, allocations: 3.648 MB / 473.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.4063, allocations: 10.03 kB / 473.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008096/0.4144, allocations: 1.807 MB / 474.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003572/0.418, allocations: 1.342 MB / 476.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.4182, allocations: 146.4 kB / 476.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006759/0.4188, allocations: 198.5 kB / 476.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0148/0.4336, allocations: 8.197 MB / 484.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.026e-05/0.4338, allocations: 17.11 kB / 484.8 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003332/0.4341, allocations: 92.86 kB / 484.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003766/0.4379, allocations: 1.926 MB / 486.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/0.4548, allocations: 7.45 MB / 494.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04317/0.498, allocations: 24.91 MB / 0.507 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005861/0.5039, allocations: 2.412 MB / 0.5093 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.5056, allocations: 0.8716 MB / 0.5102 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007164/0.5128, allocations: 4.442 MB / 0.5145 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.5129, allocations: 39.56 kB / 0.5146 GB, free: 3.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 5.52e-06/0.5129, allocations: 0 / 0.5146 GB, free: 3.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01227/0.5252, allocations: 4.684 MB / 0.5191 GB, free: 14.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.5253, allocations: 60.41 kB / 0.5192 GB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005061/0.5303, allocations: 2.492 MB / 0.5216 GB, free: 12.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001595/0.5305, allocations: 45.7 kB / 0.5217 GB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/0.5324, allocations: 2.078 MB / 0.5237 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000654/0.5331, allocations: 0.532 MB / 0.5242 GB, free: 9.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006325/0.5337, allocations: 313.8 kB / 0.5245 GB, free: 9.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.5339, allocations: 301.1 kB / 0.5248 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002646/0.5365, allocations: 1.249 MB / 0.526 GB, free: 7.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004219/0.5408, allocations: 3.302 MB / 0.5292 GB, free: 3.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006638/0.5474, allocations: 4.902 MB / 0.534 GB, free: 13.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.736e-05/0.5475, allocations: 20 kB / 0.5341 GB, free: 13.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01002/0.5576, allocations: 4.646 MB / 0.5386 GB, free: 8.711 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.233e-05/0.5577, allocations: 39.98 kB / 0.5386 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001371/0.5578, allocations: 72 kB / 0.5387 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006575/0.5585, allocations: 225.3 kB / 0.5389 GB, free: 8.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/0.5617, allocations: 0.8382 MB / 0.5397 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.5652, allocations: 2.633 MB / 0.5423 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002956/0.5682, allocations: 195.8 kB / 0.5425 GB, free: 4.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005709/0.5688, allocations: 216 kB / 0.5427 GB, free: 4.359 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.003327/0.5721, allocations: 1.58 MB / 0.5442 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005049/0.5726, allocations: 209.2 kB / 0.5444 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003948/0.5766, allocations: 1.948 MB / 0.5463 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/0.5767, allocations: 27.97 kB / 0.5464 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.5767, allocations: 4 kB / 0.5464 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5768, allocations: 3.984 kB / 0.5464 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/0.5896, allocations: 5.86 MB / 0.5521 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/0.5897, allocations: 4 kB / 0.5521 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000928/0.5906, allocations: 219.7 kB / 0.5523 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/0.5911, allocations: 133.8 kB / 0.5524 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.5912, allocations: 27.98 kB / 0.5525 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002936/0.5941, allocations: 2.302 MB / 0.5547 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.5942, allocations: 7.938 kB / 0.5547 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005433/0.5996, allocations: 3.087 MB / 0.5577 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.6007, allocations: 298.3 kB / 0.558 GB, free: 4.281 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006394/0.6014, allocations: 28.14 kB / 0.558 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.6026, allocations: 75.86 kB / 0.5581 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/0.6028, allocations: 92.73 kB / 0.5582 GB, free: 4.086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.603, allocations: 43.98 kB / 0.5583 GB, free: 4.043 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003582/0.6066, allocations: 1.603 MB / 0.5598 GB, free: 2.422 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6066, allocations: 0 / 0.5598 GB, free: 2.422 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003989/0.6106, allocations: 0.6562 MB / 0.5605 GB, free: 1.766 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.0005005/0.6111, allocations: 155 kB / 0.5606 GB, free: 1.605 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00594/0.617, allocations: 3.017 MB / 0.5636 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.6171, allocations: 0 / 0.5636 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.6188, allocations: 1.017 MB / 0.5645 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/0.6226, allocations: 379.5 kB / 0.5649 GB, free: 13.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.6382, allocations: 8.009 MB / 0.5727 GB, free: 5.121 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004127/0.6423, allocations: 2.602 MB / 0.5753 GB, free: 2.484 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003625/0.646, allocations: 1.136 MB / 0.5764 GB, free: 1.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006516/0.6467, allocations: 159.4 kB / 0.5765 GB, free: 1.184 MB / 446.1 MB Notification: Performance of SimCode: time 1.773e-06/0.6467, allocations: 0 / 0.5765 GB, free: 1.184 MB / 446.1 MB Notification: Performance of Templates: time 0.2588/0.9055, allocations: 23.37 MB / 0.5994 GB, free: 119.6 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)