Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01048/0.01048, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001815/0.001815, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04474/0.04474, allocations: 9.131 MB / 299.7 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 71.86 kB / 414.6 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1074, allocations: 51.44 MB / 466.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01123/0.1187, allocations: 10.67 MB / 476.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00718/0.1259, allocations: 2.975 MB / 479.7 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.1277, allocations: 39.94 kB / 479.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.1289, allocations: 452.8 kB / 480.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006506/0.1355, allocations: 1.716 MB / 481.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.1367, allocations: 175.7 kB / 482.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005999/0.1427, allocations: 3.107 MB / 485.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002306/0.1451, allocations: 1.149 MB / 486.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002143/0.1473, allocations: 1.128 MB / 487.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002259/0.1495, allocations: 1.623 MB / 489.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005982/0.1501, allocations: 292 kB / 489.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00185/0.152, allocations: 0.8816 MB / 490.3 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001571/0.1536, allocations: 1.508 MB / 491.8 MB, free: 7.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002049/0.1556, allocations: 1.953 MB / 493.7 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007198/0.1629, allocations: 6.104 MB / 499.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1629, allocations: 0 / 499.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1629, allocations: 0 / 499.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001241/0.163, allocations: 0 / 499.8 MB, free: 15.75 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.009718/0.1728, allocations: 4.682 MB / 0.4927 GB, free: 11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1728, allocations: 12.03 kB / 0.4927 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007056/0.1799, allocations: 1.925 MB / 0.4946 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003347/0.1832, allocations: 1.597 MB / 0.4961 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.1834, allocations: 189.1 kB / 0.4963 GB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005016/0.1839, allocations: 263.7 kB / 0.4966 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2999/0.4839, allocations: 9.777 MB / 0.5061 GB, free: 39.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/0.484, allocations: 29.55 kB / 0.5062 GB, free: 39.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003668/0.4844, allocations: 117.5 kB / 0.5063 GB, free: 39.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004453/0.4889, allocations: 2.299 MB / 0.5085 GB, free: 38.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02196/0.5108, allocations: 8.476 MB / 0.5168 GB, free: 35.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04579/0.5567, allocations: 30.65 MB / 0.5467 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005561/0.5623, allocations: 2.8 MB / 0.5495 GB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.5638, allocations: 1.048 MB / 0.5505 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008027/0.5718, allocations: 5.847 MB / 0.5562 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.5718, allocations: 47.88 kB / 0.5562 GB, free: 1.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 4.047e-06/0.5719, allocations: 0 / 0.5562 GB, free: 1.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01653/0.5884, allocations: 8.296 MB / 0.5643 GB, free: 8.988 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.5885, allocations: 68.72 kB / 0.5644 GB, free: 8.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004736/0.5932, allocations: 3.191 MB / 0.5675 GB, free: 5.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001875/0.5934, allocations: 53.7 kB / 0.5676 GB, free: 5.645 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001917/0.5954, allocations: 2.706 MB / 0.5702 GB, free: 2.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007101/0.5961, allocations: 0.7054 MB / 0.5709 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/0.5974, allocations: 0.9887 MB / 0.5719 GB, free: 1.203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.5975, allocations: 309.1 kB / 0.5722 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/0.6002, allocations: 1.571 MB / 0.5737 GB, free: 15.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004882/0.6051, allocations: 4.353 MB / 0.5779 GB, free: 9.582 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008197/0.6133, allocations: 6.384 MB / 0.5842 GB, free: 1.836 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.272e-05/0.6134, allocations: 32 kB / 0.5842 GB, free: 1.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01122/0.6246, allocations: 6.043 MB / 0.5901 GB, free: 11.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.479e-05/0.6247, allocations: 48 kB / 0.5902 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001253/0.6249, allocations: 96 kB / 0.5902 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008709/0.6257, allocations: 344.6 kB / 0.5906 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003403/0.6291, allocations: 1.104 MB / 0.5917 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.6342, allocations: 3.698 MB / 0.5953 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/0.6378, allocations: 247.8 kB / 0.5955 GB, free: 6.086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000609/0.6384, allocations: 292 kB / 0.5958 GB, free: 5.801 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003262/0.6417, allocations: 1.89 MB / 0.5976 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005397/0.6422, allocations: 290.1 kB / 0.5979 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0044/0.6466, allocations: 2.418 MB / 0.6003 GB, free: 1.184 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001843/0.6468, allocations: 47.94 kB / 0.6003 GB, free: 1.137 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.6469, allocations: 4 kB / 0.6003 GB, free: 1.133 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.6469, allocations: 7.969 kB / 0.6003 GB, free: 1.125 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.6597, allocations: 6.852 MB / 0.607 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.6597, allocations: 4 kB / 0.607 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.6608, allocations: 264 kB / 0.6073 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005908/0.6614, allocations: 216.6 kB / 0.6075 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.742e-05/0.6615, allocations: 39.98 kB / 0.6075 GB, free: 9.625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003583/0.6651, allocations: 2.949 MB / 0.6104 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.6651, allocations: 4 kB / 0.6104 GB, free: 6.535 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006482/0.6716, allocations: 3.752 MB / 0.6141 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.6727, allocations: 359.2 kB / 0.6144 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002988/0.673, allocations: 27.98 kB / 0.6144 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009906/0.674, allocations: 79.91 kB / 0.6145 GB, free: 2.234 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.6742, allocations: 113 kB / 0.6146 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.6743, allocations: 52 kB / 0.6147 GB, free: 2.074 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003592/0.6779, allocations: 2.025 MB / 0.6166 GB, free: 48 kB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6779, allocations: 4 kB / 0.6166 GB, free: 44 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.004314/0.6823, allocations: 0.8475 MB / 0.6175 GB, free: 15.2 MB / 462.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,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004698/0.6828, allocations: 166.7 kB / 0.6176 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006908/0.6897, allocations: 3.855 MB / 0.6214 GB, free: 11.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.6897, allocations: 4.062 kB / 0.6214 GB, free: 11.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.6916, allocations: 1.206 MB / 0.6226 GB, free: 9.961 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/0.694, allocations: 455.6 kB / 0.623 GB, free: 9.527 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.708, allocations: 7.979 MB / 0.6308 GB, free: 1.461 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003279/0.7113, allocations: 3.007 MB / 0.6337 GB, free: 14.42 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003388/0.7147, allocations: 1.435 MB / 0.6351 GB, free: 12.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004722/0.7152, allocations: 207.3 kB / 0.6353 GB, free: 12.78 MB / 478.1 MB Notification: Performance of SimCode: time 9.81e-07/0.7152, allocations: 0 / 0.6353 GB, free: 12.78 MB / 478.1 MB Notification: Performance of Templates: time 0.05555/0.7708, allocations: 27.7 MB / 0.6624 GB, free: 1.234 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)