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.001545/0.001545, allocations: 108.8 kB / 15.99 MB, free: 6.355 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.00169/0.00169, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.307/1.307, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04164/0.04164, allocations: 9.114 MB / 299.8 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 59.91 kB / 362.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2251, allocations: 51.43 MB / 413.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.03027/0.2554, allocations: 44.38 MB / 457.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01873/0.2742, allocations: 9.26 MB / 467.1 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008168/0.2824, allocations: 167.7 kB / 467.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.284, allocations: 370.1 kB / 467.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00422/0.2883, allocations: 1.537 MB / 469.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005719/0.2889, allocations: 147.8 kB / 469.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003811/0.2927, allocations: 3.128 MB / 472.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.2942, allocations: 1.172 MB / 473.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001439/0.2957, allocations: 1.124 MB / 474.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001956/0.2977, allocations: 1.755 MB / 476.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000509/0.2982, allocations: 292 kB / 476.8 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.2997, allocations: 0.8933 MB / 477.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.3009, allocations: 1.535 MB / 479.2 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/0.3025, allocations: 1.961 MB / 481.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004383/0.3069, allocations: 4.71 MB / 485.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.307, allocations: 0 / 485.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.307, allocations: 0 / 485.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001325/0.3071, allocations: 0 / 485.9 MB, free: 0.5312 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.009895/0.317, allocations: 4.568 MB / 490.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3171, allocations: 12.03 kB / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006688/0.3238, allocations: 1.902 MB / 492.4 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00268/0.3265, allocations: 1.585 MB / 494 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.3266, allocations: 193.1 kB / 494.2 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000477/0.3271, allocations: 251.7 kB / 494.4 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.3412, allocations: 9.784 MB / 0.4924 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.39e-05/0.3414, allocations: 31.81 kB / 0.4924 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003546/0.3417, allocations: 115.8 kB / 0.4925 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003303/0.345, allocations: 2.306 MB / 0.4948 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01498/0.36, allocations: 8.469 MB / 0.503 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2224/0.5825, allocations: 30.7 MB / 0.533 GB, free: 68.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005348/0.5879, allocations: 2.804 MB / 0.5358 GB, free: 66.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.5893, allocations: 1.043 MB / 0.5368 GB, free: 66.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006648/0.5959, allocations: 5.837 MB / 0.5425 GB, free: 60.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.596, allocations: 47.81 kB / 0.5425 GB, free: 60.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 4.308e-06/0.596, allocations: 0 / 0.5425 GB, free: 60.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.0143/0.6103, allocations: 8.23 MB / 0.5506 GB, free: 52.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.6104, allocations: 68.72 kB / 0.5506 GB, free: 52.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004325/0.6147, allocations: 3.182 MB / 0.5537 GB, free: 49.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/0.6149, allocations: 49.7 kB / 0.5538 GB, free: 49.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.6161, allocations: 2.598 MB / 0.5563 GB, free: 46.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004838/0.6166, allocations: 0.6871 MB / 0.557 GB, free: 45.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/0.6178, allocations: 0.9724 MB / 0.5579 GB, free: 44.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.473e-05/0.6178, allocations: 301.6 kB / 0.5582 GB, free: 44.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002176/0.62, allocations: 1.567 MB / 0.5598 GB, free: 42.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003084/0.6231, allocations: 4.357 MB / 0.564 GB, free: 37.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00576/0.6289, allocations: 6.383 MB / 0.5703 GB, free: 29.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-05/0.629, allocations: 34.89 kB / 0.5703 GB, free: 29.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.008928/0.638, allocations: 6.032 MB / 0.5762 GB, free: 23.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.293e-05/0.6381, allocations: 48 kB / 0.5762 GB, free: 23.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.6382, allocations: 96.88 kB / 0.5763 GB, free: 23.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/0.6389, allocations: 346.5 kB / 0.5766 GB, free: 22.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/0.6419, allocations: 1.1 MB / 0.5777 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003515/0.6454, allocations: 3.701 MB / 0.5813 GB, free: 17.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00335/0.6488, allocations: 239.9 kB / 0.5816 GB, free: 17.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005585/0.6494, allocations: 296 kB / 0.5818 GB, free: 17.45 MB / 382.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.002807/0.6522, allocations: 1.899 MB / 0.5837 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000529/0.6527, allocations: 272.4 kB / 0.584 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.6565, allocations: 2.421 MB / 0.5863 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001648/0.6566, allocations: 47.95 kB / 0.5864 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.6567, allocations: 0 / 0.5864 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.6567, allocations: 7.969 kB / 0.5864 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/0.6677, allocations: 6.887 MB / 0.5931 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.936e-06/0.6677, allocations: 4 kB / 0.5931 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009572/0.6687, allocations: 264.1 kB / 0.5934 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005362/0.6693, allocations: 222.7 kB / 0.5936 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.6694, allocations: 39.97 kB / 0.5936 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002863/0.6723, allocations: 2.952 MB / 0.5965 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.6723, allocations: 4 kB / 0.5965 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005083/0.6774, allocations: 3.736 MB / 0.6001 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008877/0.6783, allocations: 349.6 kB / 0.6005 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006197/0.6789, allocations: 31.97 kB / 0.6005 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.6802, allocations: 79.91 kB / 0.6006 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.6804, allocations: 113 kB / 0.6007 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.6806, allocations: 52 kB / 0.6007 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003704/0.6843, allocations: 2.029 MB / 0.6027 GB, free: 11.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6843, allocations: 0 / 0.6027 GB, free: 11.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004104/0.6884, allocations: 0.8424 MB / 0.6035 GB, free: 10.83 MB / 398.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.0004766/0.6889, allocations: 169.6 kB / 0.6037 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01001/0.6989, allocations: 5.484 MB / 0.6091 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.699, allocations: 0 / 0.6091 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.7009, allocations: 1.202 MB / 0.6102 GB, free: 3.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.7038, allocations: 453.8 kB / 0.6107 GB, free: 3.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/0.7211, allocations: 10.28 MB / 0.6207 GB, free: 9.211 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004113/0.7252, allocations: 3.011 MB / 0.6237 GB, free: 6.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009347/0.7262, allocations: 255.4 kB / 0.6239 GB, free: 5.914 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7262, allocations: 4 kB / 0.6239 GB, free: 5.91 MB / 414.1 MB Notification: Performance of Templates: time 0.2781/1.004, allocations: 68.43 MB / 0.6907 GB, free: 152.9 MB / 462.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)