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.001189/0.001189, allocations: 105.7 kB / 16.35 MB, free: 5.824 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.001133/0.001133, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04509/0.04509, allocations: 9.122 MB / 300.3 MB, free: 5.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.91 kB / 363.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2026, allocations: 51.42 MB / 414.8 MB, free: 24.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.006498/0.2091, allocations: 8.523 MB / 423.3 MB, free: 16.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00382/0.213, allocations: 2.606 MB / 425.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006869/0.2137, allocations: 35.94 kB / 426 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006384/0.2143, allocations: 365.6 kB / 426.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002245/0.2167, allocations: 1.381 MB / 427.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.217, allocations: 155.7 kB / 427.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.2188, allocations: 2.526 MB / 430.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008119/0.2196, allocations: 1.002 MB / 431.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000713/0.2203, allocations: 0.9222 MB / 432.3 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.2214, allocations: 1.327 MB / 433.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.2216, allocations: 240 kB / 433.9 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009957/0.2226, allocations: 0.8192 MB / 434.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006284/0.2233, allocations: 1.231 MB / 435.9 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008659/0.2241, allocations: 1.584 MB / 437.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003854/0.228, allocations: 5.041 MB / 442.5 MB, free: 13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.228, allocations: 0 / 442.5 MB, free: 13 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.228, allocations: 3.938 kB / 442.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.973e-05/0.2281, allocations: 0 / 442.5 MB, free: 12.99 MB / 318.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.008982/0.2371, allocations: 4.287 MB / 446.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.2372, allocations: 12.03 kB / 446.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006174/0.2434, allocations: 1.763 MB / 448.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.2464, allocations: 1.343 MB / 449.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.2465, allocations: 152 kB / 450.1 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004583/0.247, allocations: 196.1 kB / 450.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01213/0.2591, allocations: 8.204 MB / 458.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.043e-05/0.2592, allocations: 23.88 kB / 458.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002682/0.2595, allocations: 91.86 kB / 458.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002842/0.2624, allocations: 1.915 MB / 460.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.2761, allocations: 7.423 MB / 467.9 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03474/0.3109, allocations: 24.8 MB / 492.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005068/0.316, allocations: 2.409 MB / 495.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.3174, allocations: 0.863 MB / 496 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006504/0.3239, allocations: 4.436 MB / 0.4887 GB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.3239, allocations: 43.56 kB / 0.4888 GB, free: 1.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 2.755e-06/0.3239, allocations: 0 / 0.4888 GB, free: 1.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.0102/0.3342, allocations: 4.656 MB / 0.4933 GB, free: 12.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3342, allocations: 72.41 kB / 0.4934 GB, free: 12.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003314/0.3376, allocations: 2.484 MB / 0.4958 GB, free: 10.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.846e-05/0.3376, allocations: 41.7 kB / 0.4958 GB, free: 10.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001356/0.339, allocations: 2.082 MB / 0.4979 GB, free: 8.039 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003975/0.3394, allocations: 0.532 MB / 0.4984 GB, free: 7.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009352/0.3404, allocations: 0.7461 MB / 0.4991 GB, free: 6.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.3405, allocations: 301.1 kB / 0.4994 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/0.3424, allocations: 1.241 MB / 0.5006 GB, free: 5.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003319/0.3458, allocations: 3.294 MB / 0.5038 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1821/0.5278, allocations: 4.882 MB / 0.5086 GB, free: 82.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.652e-05/0.5279, allocations: 21.03 kB / 0.5086 GB, free: 82.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.007299/0.5352, allocations: 4.635 MB / 0.5131 GB, free: 80.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.45e-05/0.5353, allocations: 39.84 kB / 0.5132 GB, free: 80.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000101/0.5354, allocations: 73 kB / 0.5133 GB, free: 80.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006039/0.536, allocations: 229.3 kB / 0.5135 GB, free: 80.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002175/0.5382, allocations: 0.8303 MB / 0.5143 GB, free: 80.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/0.5407, allocations: 2.86 MB / 0.5171 GB, free: 78.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002133/0.5428, allocations: 186.2 kB / 0.5173 GB, free: 78.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002235/0.543, allocations: 220.3 kB / 0.5175 GB, free: 78.34 MB / 382.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.001603/0.5446, allocations: 1.578 MB / 0.519 GB, free: 77.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.5449, allocations: 211 kB / 0.5192 GB, free: 77.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.5475, allocations: 1.94 MB / 0.5211 GB, free: 76.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.825e-05/0.5476, allocations: 23.28 kB / 0.5211 GB, free: 76.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.5476, allocations: 3.812 kB / 0.5211 GB, free: 76.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.5476, allocations: 7.641 kB / 0.5211 GB, free: 76.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007444/0.5551, allocations: 5.817 MB / 0.5268 GB, free: 73.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.5551, allocations: 4 kB / 0.5268 GB, free: 73.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007617/0.5558, allocations: 213.6 kB / 0.527 GB, free: 73.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003164/0.5562, allocations: 143.8 kB / 0.5272 GB, free: 73.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.822e-05/0.5563, allocations: 27.8 kB / 0.5272 GB, free: 73.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/0.5581, allocations: 2.512 MB / 0.5296 GB, free: 70.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5581, allocations: 7.938 kB / 0.5296 GB, free: 70.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003247/0.5614, allocations: 3.065 MB / 0.5326 GB, free: 67.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003881/0.5618, allocations: 290.3 kB / 0.5329 GB, free: 67.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/0.562, allocations: 24 kB / 0.5329 GB, free: 67.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/0.5627, allocations: 67.91 kB / 0.533 GB, free: 67.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.5629, allocations: 92.83 kB / 0.5331 GB, free: 67.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.48e-05/0.563, allocations: 43.98 kB / 0.5331 GB, free: 67.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001667/0.5647, allocations: 1.607 MB / 0.5347 GB, free: 65.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5647, allocations: 3.844 kB / 0.5347 GB, free: 65.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00224/0.5669, allocations: 0.6569 MB / 0.5353 GB, free: 65.2 MB / 382.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.0002483/0.5672, allocations: 159.9 kB / 0.5355 GB, free: 65.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003539/0.5707, allocations: 3.024 MB / 0.5385 GB, free: 62.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.5707, allocations: 0 / 0.5385 GB, free: 62.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.5719, allocations: 1.013 MB / 0.5394 GB, free: 61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.5735, allocations: 409.5 kB / 0.5398 GB, free: 60.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00944/0.5829, allocations: 6.319 MB / 0.546 GB, free: 54.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/0.5851, allocations: 2.594 MB / 0.5485 GB, free: 51.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002365/0.5875, allocations: 1.14 MB / 0.5497 GB, free: 50.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/0.5879, allocations: 163.3 kB / 0.5498 GB, free: 50.31 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5879, allocations: 0 / 0.5498 GB, free: 50.31 MB / 382.1 MB Notification: Performance of Templates: time 0.03389/0.6218, allocations: 22.8 MB / 0.5721 GB, free: 27.7 MB / 382.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)