Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 104.1 kB / 16.41 MB, free: 6.508 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.001262/0.001262, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04447/0.04447, allocations: 9.121 MB / 300.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 63.89 kB / 415.3 MB, free: 21.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 51.44 MB / 466.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.01065/0.1186, allocations: 8.435 MB / 475.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005894/0.1245, allocations: 2.608 MB / 477.8 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1261, allocations: 31.94 kB / 477.8 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.1275, allocations: 369.5 kB / 478.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004105/0.1316, allocations: 1.408 MB / 479.6 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005975/0.1322, allocations: 139.8 kB / 479.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003762/0.136, allocations: 2.552 MB / 482.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001782/0.1378, allocations: 0.9092 MB / 483.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.1396, allocations: 0.9066 MB / 484.1 MB, free: 360 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002183/0.1418, allocations: 1.323 MB / 485.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007392/0.1425, allocations: 232 kB / 485.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00196/0.1445, allocations: 0.8231 MB / 486.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0016/0.1461, allocations: 1.227 MB / 487.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002756/0.1489, allocations: 1.584 MB / 489.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006433/0.1553, allocations: 5.045 MB / 494.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1554, allocations: 0 / 494.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1554, allocations: 0 / 494.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000194/0.1556, allocations: 0 / 494.3 MB, free: 6.086 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01231/0.1679, allocations: 4.345 MB / 498.7 MB, free: 1.676 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1679, allocations: 12.03 kB / 498.7 MB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006736/0.1747, allocations: 1.763 MB / 0.4887 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003166/0.1779, allocations: 1.364 MB / 0.49 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.1781, allocations: 152.1 kB / 0.4902 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009247/0.179, allocations: 199.8 kB / 0.4904 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.1934, allocations: 8.251 MB / 0.4984 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.671e-05/0.1935, allocations: 23.78 kB / 0.4985 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006209/0.1941, allocations: 91.86 kB / 0.4985 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00315/0.1973, allocations: 1.911 MB / 0.5004 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2794/0.4767, allocations: 7.421 MB / 0.5077 GB, free: 38.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04272/0.5195, allocations: 25.52 MB / 0.5326 GB, free: 21.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00573/0.5253, allocations: 2.617 MB / 0.5351 GB, free: 20.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.5266, allocations: 0.9164 MB / 0.536 GB, free: 19.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005728/0.5323, allocations: 5.071 MB / 0.541 GB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.5324, allocations: 46.53 kB / 0.541 GB, free: 15.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 5.12e-06/0.5324, allocations: 4 kB / 0.541 GB, free: 15.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.0115/0.5439, allocations: 5.48 MB / 0.5464 GB, free: 11.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.544, allocations: 64.72 kB / 0.5464 GB, free: 11.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003203/0.5472, allocations: 2.615 MB / 0.549 GB, free: 8.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-05/0.5473, allocations: 53.7 kB / 0.5491 GB, free: 8.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008337/0.5481, allocations: 2.097 MB / 0.5511 GB, free: 6.605 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003529/0.5485, allocations: 0.6452 MB / 0.5517 GB, free: 5.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008352/0.5493, allocations: 0.8256 MB / 0.5525 GB, free: 5.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.307e-05/0.5494, allocations: 305.1 kB / 0.5528 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/0.5512, allocations: 1.367 MB / 0.5542 GB, free: 3.453 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002783/0.554, allocations: 3.63 MB / 0.5577 GB, free: 14.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005937/0.56, allocations: 5.421 MB / 0.563 GB, free: 8.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.609e-05/0.5601, allocations: 28 kB / 0.563 GB, free: 8.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.008899/0.569, allocations: 5.212 MB / 0.5681 GB, free: 2.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.704e-05/0.5691, allocations: 40 kB / 0.5682 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/0.5692, allocations: 80 kB / 0.5682 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009688/0.5702, allocations: 370 kB / 0.5686 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.5729, allocations: 0.9085 MB / 0.5695 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005195/0.5781, allocations: 4.174 MB / 0.5735 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002886/0.581, allocations: 199.9 kB / 0.5737 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005298/0.5816, allocations: 244 kB / 0.574 GB, free: 12.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (498): * Single equations (assignments): 493 * 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 {(2,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002762/0.5844, allocations: 1.614 MB / 0.5755 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000479/0.5848, allocations: 229.6 kB / 0.5758 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004198/0.5891, allocations: 2.342 MB / 0.5781 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/0.5892, allocations: 31.92 kB / 0.5781 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.5892, allocations: 4 kB / 0.5781 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.5892, allocations: 7.969 kB / 0.5781 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/0.6014, allocations: 6.44 MB / 0.5844 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.6015, allocations: 5.406 kB / 0.5844 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009026/0.6024, allocations: 239.6 kB / 0.5846 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007135/0.6031, allocations: 261 kB / 0.5849 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.6032, allocations: 39.67 kB / 0.5849 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.6073, allocations: 3.418 MB / 0.5882 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.6073, allocations: 4 kB / 0.5882 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005123/0.6124, allocations: 3.606 MB / 0.5918 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007777/0.6132, allocations: 306.2 kB / 0.5921 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004475/0.6137, allocations: 28 kB / 0.5921 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.6147, allocations: 79.91 kB / 0.5922 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.6149, allocations: 105.1 kB / 0.5923 GB, free: 9.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6151, allocations: 52 kB / 0.5923 GB, free: 9.676 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002872/0.6179, allocations: 1.68 MB / 0.594 GB, free: 7.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.618, allocations: 0 / 0.594 GB, free: 7.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0033/0.6213, allocations: 0.7272 MB / 0.5947 GB, free: 7.262 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (132): * Single equations (assignments): 127 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003885/0.6217, allocations: 161.9 kB / 0.5948 GB, free: 7.098 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006039/0.6277, allocations: 3.441 MB / 0.5982 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.6277, allocations: 3.938 kB / 0.5982 GB, free: 3.664 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.6296, allocations: 1.165 MB / 0.5993 GB, free: 2.488 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002562/0.6321, allocations: 400.1 kB / 0.5997 GB, free: 2.113 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.6461, allocations: 7.071 MB / 0.6066 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003665/0.6499, allocations: 2.619 MB / 0.6092 GB, free: 8.332 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008115/0.6507, allocations: 211.4 kB / 0.6094 GB, free: 8.129 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6507, allocations: 0 / 0.6094 GB, free: 8.129 MB / 446.1 MB Notification: Performance of Templates: time 0.07906/0.7298, allocations: 58.19 MB / 0.6662 GB, free: 14.04 MB / 0.4981 GB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)