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.001053/0.001053, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001307/0.001307, allocations: 195.4 kB / 16.14 MB, free: 6.711 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.388/1.388, allocations: 222.9 MB / 239.8 MB, free: 4.652 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2174/0.2174, allocations: 9.109 MB / 299.1 MB, free: 1.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 361.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1226, allocations: 51.45 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2568/0.3794, allocations: 44.36 MB / 457.1 MB, free: 17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0201/0.3995, allocations: 9.296 MB / 466.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01096/0.4105, allocations: 164.6 kB / 466.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.4121, allocations: 374.4 kB / 466.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004392/0.4166, allocations: 1.545 MB / 468.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.4172, allocations: 150 kB / 468.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004068/0.4213, allocations: 4.316 MB / 472.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.4225, allocations: 1.043 MB / 473.9 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.4238, allocations: 0.965 MB / 474.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001938/0.4258, allocations: 1.634 MB / 476.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006272/0.4264, allocations: 175.5 kB / 476.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.4283, allocations: 0.8109 MB / 477.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001493/0.4298, allocations: 1.412 MB / 478.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001728/0.4316, allocations: 1.852 MB / 480.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00743/0.439, allocations: 5.597 MB / 486.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.439, allocations: 0 / 486.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4391, allocations: 1.062 kB / 486.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002617/0.4393, allocations: 0 / 486.4 MB, free: 2.582 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01561/0.4549, allocations: 4.562 MB / 490.9 MB, free: 168 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.455, allocations: 14.47 kB / 491 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008658/0.4637, allocations: 1.901 MB / 492.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005127/0.4688, allocations: 1.589 MB / 494.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.4691, allocations: 187.1 kB / 494.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001171/0.4702, allocations: 263.8 kB / 494.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01912/0.4894, allocations: 9.783 MB / 0.4928 GB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.4895, allocations: 31.75 kB / 0.4929 GB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004052/0.4899, allocations: 115.8 kB / 0.493 GB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003728/0.4936, allocations: 2.306 MB / 0.4952 GB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0201/0.5138, allocations: 8.476 MB / 0.5035 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0472/0.561, allocations: 30.71 MB / 0.5335 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006609/0.5677, allocations: 2.802 MB / 0.5362 GB, free: 11.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.5695, allocations: 1.045 MB / 0.5373 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.5801, allocations: 5.832 MB / 0.543 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.065e-05/0.5802, allocations: 51.86 kB / 0.543 GB, free: 3.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 4.218e-06/0.5802, allocations: 0 / 0.543 GB, free: 3.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01896/0.5992, allocations: 8.209 MB / 0.551 GB, free: 11.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.5993, allocations: 80.7 kB / 0.5511 GB, free: 11.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005225/0.6045, allocations: 3.186 MB / 0.5542 GB, free: 8.262 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.6047, allocations: 49.7 kB / 0.5543 GB, free: 8.207 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.6065, allocations: 2.597 MB / 0.5568 GB, free: 5.574 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007109/0.6073, allocations: 0.6669 MB / 0.5575 GB, free: 4.898 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001581/0.6089, allocations: 0.9841 MB / 0.5584 GB, free: 3.902 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.609, allocations: 305.1 kB / 0.5587 GB, free: 3.602 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002852/0.6118, allocations: 1.571 MB / 0.5602 GB, free: 2.023 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004975/0.6168, allocations: 4.353 MB / 0.5645 GB, free: 12.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008987/0.6258, allocations: 6.392 MB / 0.5707 GB, free: 4.523 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.37e-05/0.6259, allocations: 28 kB / 0.5708 GB, free: 4.496 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.2424/0.8684, allocations: 6.028 MB / 0.5766 GB, free: 122.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.181e-05/0.8685, allocations: 46.44 kB / 0.5767 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/0.8686, allocations: 98.25 kB / 0.5768 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008024/0.8694, allocations: 350 kB / 0.5771 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003693/0.8731, allocations: 1.09 MB / 0.5782 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003896/0.877, allocations: 3.398 MB / 0.5815 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003974/0.881, allocations: 250.1 kB / 0.5817 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005879/0.8816, allocations: 295.8 kB / 0.582 GB, free: 121.6 MB / 446.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.003205/0.8848, allocations: 1.885 MB / 0.5839 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/0.8853, allocations: 274.5 kB / 0.5841 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003663/0.8889, allocations: 2.431 MB / 0.5865 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001677/0.8891, allocations: 49.39 kB / 0.5865 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.8891, allocations: 0.75 kB / 0.5865 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.8892, allocations: 10.3 kB / 0.5866 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009874/0.899, allocations: 6.886 MB / 0.5933 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.8991, allocations: 3.781 kB / 0.5933 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009833/0.9001, allocations: 263.3 kB / 0.5935 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005539/0.9006, allocations: 216 kB / 0.5937 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.9008, allocations: 38.03 kB / 0.5938 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002442/0.9032, allocations: 2.727 MB / 0.5964 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.9032, allocations: 3 kB / 0.5964 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004886/0.9081, allocations: 3.734 MB / 0.6001 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009424/0.9091, allocations: 348.7 kB / 0.6004 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003459/0.9094, allocations: 33.89 kB / 0.6005 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009528/0.9104, allocations: 83.78 kB / 0.6005 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.9106, allocations: 109.6 kB / 0.6006 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.9107, allocations: 56.12 kB / 0.6007 GB, free: 114.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003177/0.9139, allocations: 2.024 MB / 0.6027 GB, free: 113.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9139, allocations: 0 / 0.6027 GB, free: 113.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004107/0.918, allocations: 0.835 MB / 0.6035 GB, free: 113.8 MB / 446.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.0003796/0.9184, allocations: 174.9 kB / 0.6037 GB, free: 113.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006541/0.925, allocations: 3.828 MB / 0.6074 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.925, allocations: 1.281 kB / 0.6074 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.9269, allocations: 1.203 MB / 0.6086 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.9294, allocations: 434.5 kB / 0.609 GB, free: 111.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.9459, allocations: 9.844 MB / 0.6186 GB, free: 106.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003575/0.9495, allocations: 3.003 MB / 0.6215 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003748/0.9533, allocations: 1.431 MB / 0.6229 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005348/0.9538, allocations: 209.2 kB / 0.6231 GB, free: 104.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.004e-06/0.9538, allocations: 0 / 0.6231 GB, free: 104.9 MB / 446.1 MB Notification: Performance of Templates: time 0.04859/1.002, allocations: 29.35 MB / 0.6518 GB, free: 83.33 MB / 446.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)