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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.000909/0.000909, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009249/0.000925, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1773/0.1773, allocations: 9.084 MB / 300.1 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.0002942, allocations: 12 kB / 363 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1104, allocations: 52.43 MB / 415.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2632/0.3736, allocations: 26.4 MB / 441.8 MB, free: 29.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01716/0.3908, allocations: 6.812 MB / 448.6 MB, free: 24.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007563/0.3985, allocations: 116.1 kB / 448.8 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005477/0.404, allocations: 1.305 MB / 450.1 MB, free: 24.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01439/0.4184, allocations: 3.94 MB / 454 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.4201, allocations: 142.3 kB / 454.1 MB, free: 22.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002986/0.4231, allocations: 1.405 MB / 455.5 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.4247, allocations: 0.8745 MB / 456.4 MB, free: 21.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.4261, allocations: 0.6854 MB / 457.1 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001617/0.4278, allocations: 0.9637 MB / 458.1 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007566/0.4286, allocations: 137.3 kB / 458.2 MB, free: 20.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.4303, allocations: 0.6493 MB / 458.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.4317, allocations: 1.036 MB / 459.9 MB, free: 19.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009822/0.4327, allocations: 0.6369 MB / 460.5 MB, free: 19.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003701/0.4365, allocations: 3.732 MB / 464.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.4365, allocations: 0 / 464.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4365, allocations: 0 / 464.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001214/0.4366, allocations: 7.406 kB / 464.3 MB, free: 18.62 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.008268/0.4449, allocations: 3.738 MB / 468 MB, free: 16.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.4449, allocations: 8.906 kB / 468 MB, free: 16.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007882/0.4528, allocations: 2.175 MB / 470.2 MB, free: 16.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0039/0.4568, allocations: 1.314 MB / 471.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.457, allocations: 149 kB / 471.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000862/0.4578, allocations: 193.3 kB / 471.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01704/0.4749, allocations: 8.213 MB / 480 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.166e-05/0.475, allocations: 23.88 kB / 480.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000349/0.4754, allocations: 97.86 kB / 480.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004337/0.4797, allocations: 1.915 MB / 482.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/0.4975, allocations: 7.457 MB / 489.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04159/0.5391, allocations: 24.9 MB / 0.5024 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005618/0.5448, allocations: 2.406 MB / 0.5047 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001681/0.5465, allocations: 1.693 MB / 0.5064 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.5465, allocations: 47.55 kB / 0.5064 GB, free: 11.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.417e-06/0.5465, allocations: 0 / 0.5064 GB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01363/0.5602, allocations: 5.554 MB / 0.5119 GB, free: 5.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.5602, allocations: 68.72 kB / 0.5119 GB, free: 5.691 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003588/0.5638, allocations: 2.396 MB / 0.5143 GB, free: 3.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.564, allocations: 49.7 kB / 0.5143 GB, free: 3.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001681/0.5657, allocations: 2.016 MB / 0.5163 GB, free: 1.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006223/0.5664, allocations: 0.5936 MB / 0.5169 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.5665, allocations: 79.92 kB / 0.5169 GB, free: 488 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002569/0.5668, allocations: 470.1 kB / 0.5174 GB, free: 12 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.569, allocations: 1.26 MB / 0.5186 GB, free: 14.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003493/0.5725, allocations: 3.306 MB / 0.5218 GB, free: 10.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003208/0.5758, allocations: 2.04 MB / 0.5238 GB, free: 8.391 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.555e-05/0.5758, allocations: 20 kB / 0.5238 GB, free: 8.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=489) (initialization): time 0.007724/0.5835, allocations: 4.68 MB / 0.5284 GB, free: 3.688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.5836, allocations: 36 kB / 0.5285 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.379e-05/0.5837, allocations: 72.16 kB / 0.5285 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000511/0.5842, allocations: 241.2 kB / 0.5288 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/0.5868, allocations: 0.8464 MB / 0.5296 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003101/0.5899, allocations: 2.662 MB / 0.5322 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002694/0.5927, allocations: 200 kB / 0.5324 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003649/0.593, allocations: 220 kB / 0.5326 GB, free: 15.29 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 (451): * Single equations (assignments): 446 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002778/0.5958, allocations: 1.584 MB / 0.5341 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/0.5962, allocations: 217.2 kB / 0.5343 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003793/0.6, allocations: 2.3 MB / 0.5366 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/0.6001, allocations: 35.95 kB / 0.5366 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.6001, allocations: 0 / 0.5366 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.6001, allocations: 7.984 kB / 0.5366 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.612, allocations: 6.426 MB / 0.5429 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.612, allocations: 8 kB / 0.5429 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009857/0.613, allocations: 244.4 kB / 0.5431 GB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004048/0.6134, allocations: 144.7 kB / 0.5433 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.586e-05/0.6136, allocations: 35.95 kB / 0.5433 GB, free: 4.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002613/0.6162, allocations: 2.332 MB / 0.5456 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.455e-06/0.6162, allocations: 11.94 kB / 0.5456 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005535/0.6217, allocations: 3.877 MB / 0.5494 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008452/0.6226, allocations: 310.2 kB / 0.5497 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.6229, allocations: 31.98 kB / 0.5497 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009468/0.6238, allocations: 75.98 kB / 0.5498 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.6241, allocations: 108.8 kB / 0.5499 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.6242, allocations: 67.83 kB / 0.5499 GB, free: 12.87 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002814/0.627, allocations: 1.552 MB / 0.5515 GB, free: 11.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6271, allocations: 0 / 0.5515 GB, free: 11.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00374/0.6308, allocations: 0.6523 MB / 0.5521 GB, free: 10.64 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (126): * Single equations (assignments): 121 * 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 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003921/0.6312, allocations: 171.4 kB / 0.5523 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005636/0.6369, allocations: 3.111 MB / 0.5553 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/0.6369, allocations: 4 kB / 0.5553 GB, free: 7.355 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.6387, allocations: 1.112 MB / 0.5564 GB, free: 6.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.6408, allocations: 370.4 kB / 0.5567 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.6529, allocations: 7.856 MB / 0.5644 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003014/0.656, allocations: 2.675 MB / 0.567 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002994/0.659, allocations: 1.183 MB / 0.5682 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004436/0.6595, allocations: 171.4 kB / 0.5684 GB, free: 9.84 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6595, allocations: 0 / 0.5684 GB, free: 9.84 MB / 446.1 MB Notification: Performance of Templates: time 0.2199/0.8794, allocations: 23.16 MB / 0.591 GB, free: 119.5 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)