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/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.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.001455/0.001455, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001518/0.001518, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04594/0.04594, allocations: 9.112 MB / 300.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.91 kB / 415.3 MB, free: 21.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09558, allocations: 51.44 MB / 466.7 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01218/0.1078, allocations: 10.68 MB / 477.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006403/0.1142, allocations: 2.953 MB / 480.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001632/0.1159, allocations: 47.81 kB / 480.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.1173, allocations: 448.9 kB / 480.9 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004371/0.1217, allocations: 1.661 MB / 482.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006834/0.1224, allocations: 175.7 kB / 482.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004138/0.1266, allocations: 3.124 MB / 485.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.1284, allocations: 1.149 MB / 487 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.1304, allocations: 1.121 MB / 488.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002493/0.1329, allocations: 1.623 MB / 489.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008766/0.1338, allocations: 292 kB / 490 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.1358, allocations: 0.8817 MB / 490.9 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001536/0.1373, allocations: 1.515 MB / 492.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.1393, allocations: 1.949 MB / 494.3 MB, free: 6.047 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006859/0.1461, allocations: 6.076 MB / 0.4887 GB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1462, allocations: 0 / 0.4887 GB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1462, allocations: 0 / 0.4887 GB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001494/0.1463, allocations: 0 / 0.4887 GB, free: 15.95 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.009897/0.1562, allocations: 4.58 MB / 0.4932 GB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.1563, allocations: 8.031 kB / 0.4932 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006958/0.1633, allocations: 1.903 MB / 0.495 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.1667, allocations: 1.585 MB / 0.4966 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.1668, allocations: 193.1 kB / 0.4968 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005203/0.1674, allocations: 255.7 kB / 0.497 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2471/0.4145, allocations: 9.783 MB / 0.5066 GB, free: 39.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.4147, allocations: 30.11 kB / 0.5066 GB, free: 39.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003762/0.415, allocations: 120 kB / 0.5067 GB, free: 39.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004163/0.4192, allocations: 2.303 MB / 0.509 GB, free: 38.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01954/0.4388, allocations: 8.474 MB / 0.5172 GB, free: 36.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03742/0.4762, allocations: 30.56 MB / 0.5471 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005699/0.482, allocations: 2.797 MB / 0.5498 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.4834, allocations: 1.051 MB / 0.5508 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007427/0.4909, allocations: 5.838 MB / 0.5565 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.4909, allocations: 43.88 kB / 0.5566 GB, free: 1.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 3.937e-06/0.4909, allocations: 2.531 kB / 0.5566 GB, free: 1.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01676/0.5077, allocations: 8.223 MB / 0.5646 GB, free: 9.152 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.5078, allocations: 72.72 kB / 0.5647 GB, free: 9.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00442/0.5122, allocations: 3.186 MB / 0.5678 GB, free: 5.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.5124, allocations: 53.69 kB / 0.5678 GB, free: 5.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.5141, allocations: 2.601 MB / 0.5704 GB, free: 3.172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006283/0.5148, allocations: 0.6707 MB / 0.571 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.516, allocations: 0.9841 MB / 0.572 GB, free: 1.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.5161, allocations: 309.1 kB / 0.5723 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.5186, allocations: 1.567 MB / 0.5738 GB, free: 15.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004407/0.523, allocations: 4.357 MB / 0.5781 GB, free: 9.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007432/0.5304, allocations: 6.385 MB / 0.5843 GB, free: 2.121 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.849e-05/0.5305, allocations: 28 kB / 0.5843 GB, free: 2.094 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01083/0.5414, allocations: 6.025 MB / 0.5902 GB, free: 12.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-05/0.5415, allocations: 48 kB / 0.5903 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001107/0.5416, allocations: 96 kB / 0.5904 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007958/0.5424, allocations: 344.9 kB / 0.5907 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003282/0.5457, allocations: 1.103 MB / 0.5918 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004308/0.55, allocations: 3.694 MB / 0.5954 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003423/0.5534, allocations: 255.8 kB / 0.5956 GB, free: 6.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004597/0.5539, allocations: 296 kB / 0.5959 GB, free: 6.102 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.002854/0.5568, allocations: 1.882 MB / 0.5977 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004382/0.5572, allocations: 268.5 kB / 0.598 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.5613, allocations: 2.425 MB / 0.6004 GB, free: 1.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001789/0.5615, allocations: 43.16 kB / 0.6004 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.5615, allocations: 4 kB / 0.6004 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.5615, allocations: 7.969 kB / 0.6004 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.573, allocations: 6.849 MB / 0.6071 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.5731, allocations: 4 kB / 0.6071 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.5742, allocations: 268 kB / 0.6074 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005972/0.5748, allocations: 212.6 kB / 0.6076 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-05/0.5749, allocations: 39.98 kB / 0.6076 GB, free: 9.953 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00332/0.5782, allocations: 2.951 MB / 0.6105 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.5782, allocations: 4 kB / 0.6105 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006072/0.5843, allocations: 3.731 MB / 0.6141 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.5857, allocations: 345.6 kB / 0.6145 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003841/0.5861, allocations: 31.94 kB / 0.6145 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.5871, allocations: 79.91 kB / 0.6146 GB, free: 2.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.5874, allocations: 113.1 kB / 0.6147 GB, free: 2.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.5875, allocations: 51.98 kB / 0.6147 GB, free: 2.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002944/0.5904, allocations: 2.029 MB / 0.6167 GB, free: 408 kB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5904, allocations: 0 / 0.6167 GB, free: 408 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.00355/0.594, allocations: 0.8346 MB / 0.6175 GB, free: 15.56 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.0003701/0.5944, allocations: 176.2 kB / 0.6177 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006178/0.6005, allocations: 3.844 MB / 0.6214 GB, free: 11.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.6006, allocations: 3.938 kB / 0.6215 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.6023, allocations: 1.203 MB / 0.6226 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0022/0.6046, allocations: 469.9 kB / 0.6231 GB, free: 9.887 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.6181, allocations: 8.298 MB / 0.6312 GB, free: 1.512 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003162/0.6213, allocations: 3.007 MB / 0.6341 GB, free: 14.47 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009282/0.6223, allocations: 259.4 kB / 0.6344 GB, free: 14.22 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6223, allocations: 4 kB / 0.6344 GB, free: 14.21 MB / 478.1 MB Notification: Performance of Templates: time 0.09548/0.7178, allocations: 68.94 MB / 0.7017 GB, free: 9.383 MB / 0.5294 GB 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)