Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.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.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") translateModel(PlanarMechanics.Examples.MeasureDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.MeasureDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 103.7 kB / 16.41 MB, free: 6.5 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.001184/0.001185, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04532/0.04532, allocations: 9.124 MB / 300.3 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.1006, allocations: 51.43 MB / 466.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.MeasureDemo): time 0.01526/0.1159, allocations: 13.79 MB / 480.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009764/0.1257, allocations: 4.023 MB / 484.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002756/0.1285, allocations: 55.88 kB / 484.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.1302, allocations: 388.7 kB / 485 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003426/0.1337, allocations: 0.9049 MB / 485.9 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.1358, allocations: 0.9753 MB / 486.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003346/0.1391, allocations: 2.238 MB / 489.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003568/0.1427, allocations: 2.762 MB / 491.9 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.1445, allocations: 1.024 MB / 492.9 MB, free: 7.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002008/0.1465, allocations: 1.233 MB / 494.1 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000691/0.1472, allocations: 308 kB / 494.4 MB, free: 5.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.1488, allocations: 0.718 MB / 495.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.15, allocations: 0.9662 MB / 496.1 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.1522, allocations: 1.485 MB / 497.6 MB, free: 2.613 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004056/0.1563, allocations: 3.882 MB / 0.4897 GB, free: 14.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1563, allocations: 0 / 0.4897 GB, free: 14.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1563, allocations: 0 / 0.4897 GB, free: 14.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.478e-05/0.1564, allocations: 0 / 0.4897 GB, free: 14.72 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: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.00939/0.1658, allocations: 4.168 MB / 0.4938 GB, free: 10.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.1658, allocations: 8.031 kB / 0.4938 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005454/0.1664, allocations: 293.2 kB / 0.4941 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/0.1683, allocations: 1.139 MB / 0.4952 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.1685, allocations: 214 kB / 0.4954 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003914/0.1689, allocations: 295.8 kB / 0.4957 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007409/0.1763, allocations: 4.736 MB / 0.5003 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.1764, allocations: 39.62 kB / 0.5004 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.1767, allocations: 128 kB / 0.5005 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005164/0.1772, allocations: 432.2 kB / 0.5009 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2402/0.4174, allocations: 3.368 MB / 0.5042 GB, free: 42.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02244/0.4399, allocations: 21.55 MB / 0.5252 GB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005045/0.445, allocations: 1.918 MB / 0.5271 GB, free: 25.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009658/0.446, allocations: 0.6882 MB / 0.5278 GB, free: 25.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006008/0.452, allocations: 5.556 MB / 0.5332 GB, free: 21.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.452, allocations: 42.31 kB / 0.5332 GB, free: 21.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.394e-06/0.452, allocations: 3.969 kB / 0.5332 GB, free: 21.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01983/0.4719, allocations: 9.555 MB / 0.5426 GB, free: 15.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.472, allocations: 67.22 kB / 0.5426 GB, free: 15.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/0.4738, allocations: 1.814 MB / 0.5444 GB, free: 14.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/0.4739, allocations: 45.7 kB / 0.5444 GB, free: 14.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005973/0.4745, allocations: 1.737 MB / 0.5461 GB, free: 12.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.4748, allocations: 0.5271 MB / 0.5467 GB, free: 12.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000698/0.4755, allocations: 0.7462 MB / 0.5474 GB, free: 11.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.149e-05/0.4756, allocations: 357.9 kB / 0.5477 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.4769, allocations: 1.214 MB / 0.5489 GB, free: 9.746 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/0.4789, allocations: 3.42 MB / 0.5523 GB, free: 5.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004133/0.4831, allocations: 5.118 MB / 0.5573 GB, free: 15.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-05/0.4831, allocations: 20 kB / 0.5573 GB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.007223/0.4903, allocations: 4.821 MB / 0.562 GB, free: 10.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.93e-05/0.4904, allocations: 40 kB / 0.562 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.246e-05/0.4905, allocations: 80.16 kB / 0.5621 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008807/0.4914, allocations: 368.5 kB / 0.5624 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/0.494, allocations: 0.8928 MB / 0.5633 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005214/0.4992, allocations: 4.295 MB / 0.5675 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.5015, allocations: 215.6 kB / 0.5677 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002854/0.5018, allocations: 232 kB / 0.5679 GB, free: 3.957 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (464): * Single equations (assignments): 463 * Array equations: 0 * 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.00143/0.5033, allocations: 0.9341 MB / 0.5688 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.5036, allocations: 189.6 kB / 0.569 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/0.5075, allocations: 2.595 MB / 0.5716 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.5075, allocations: 12 kB / 0.5716 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.5075, allocations: 4 kB / 0.5716 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/0.5075, allocations: 11.97 kB / 0.5716 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.5176, allocations: 6.425 MB / 0.5779 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.5176, allocations: 4.469 kB / 0.5779 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.5186, allocations: 275.6 kB / 0.5781 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000632/0.5193, allocations: 252.6 kB / 0.5784 GB, free: 9.148 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.144e-05/0.5193, allocations: 31.94 kB / 0.5784 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003886/0.5232, allocations: 3.454 MB / 0.5818 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.5233, allocations: 7.984 kB / 0.5818 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004983/0.5282, allocations: 3.903 MB / 0.5856 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004897/0.5288, allocations: 242.7 kB / 0.5858 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.529, allocations: 31.94 kB / 0.5859 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007738/0.5297, allocations: 106.4 kB / 0.586 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.5299, allocations: 100.8 kB / 0.5861 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.533e-05/0.53, allocations: 39.98 kB / 0.5861 GB, free: 1.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001519/0.5315, allocations: 1.088 MB / 0.5872 GB, free: 15.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5316, allocations: 0 / 0.5872 GB, free: 15.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002689/0.5342, allocations: 0.6328 MB / 0.5878 GB, free: 15.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (121): * Single equations (assignments): 120 * Array equations: 0 * 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.0002286/0.5345, allocations: 136.1 kB / 0.5879 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005123/0.5396, allocations: 3.324 MB / 0.5911 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5396, allocations: 8 kB / 0.5912 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.5413, allocations: 1.266 MB / 0.5924 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.5431, allocations: 444 kB / 0.5928 GB, free: 10.16 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007923/0.551, allocations: 5.143 MB / 0.5978 GB, free: 4.953 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00172/0.5527, allocations: 1.826 MB / 0.5996 GB, free: 3.09 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006229/0.5534, allocations: 179.4 kB / 0.5998 GB, free: 2.914 MB / 430.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5534, allocations: 0 / 0.5998 GB, free: 2.914 MB / 430.1 MB Notification: Performance of Templates: time 0.06024/0.6136, allocations: 44.54 MB / 0.6433 GB, free: 6.434 MB / 478.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.MeasureDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.MeasureDemo.pipe 2>&1)