Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.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.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") translateModel(PlanarMechanics.Examples.KinematicLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00571/0.00571, allocations: 101 kB / 15.73 MB, free: 6.043 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: 188.3 kB / 16.67 MB, free: 5.973 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.198/0.198, allocations: 9.13 MB / 299.7 MB, free: 1.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.91 kB / 414.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3508, allocations: 51.43 MB / 466.1 MB, free: 18.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01134/0.3621, allocations: 10.48 MB / 476.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008481/0.3707, allocations: 2.976 MB / 479.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003421/0.3741, allocations: 47.53 kB / 479.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.3758, allocations: 448.7 kB / 480 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004681/0.3805, allocations: 1.633 MB / 481.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007517/0.3813, allocations: 219.1 kB / 481.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004622/0.3859, allocations: 3.02 MB / 484.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.3877, allocations: 1.179 MB / 486.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001595/0.3893, allocations: 1.104 MB / 487.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/0.391, allocations: 1.552 MB / 488.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004847/0.3915, allocations: 277.2 kB / 489 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.3933, allocations: 0.8721 MB / 489.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001162/0.3945, allocations: 1.397 MB / 491.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00156/0.3961, allocations: 1.86 MB / 493.1 MB, free: 172 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006856/0.4029, allocations: 5.714 MB / 498.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.403, allocations: 0 / 498.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.327e-06/0.403, allocations: 0 / 498.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001316/0.4031, allocations: 0 / 498.8 MB, free: 11.32 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.01486/0.418, allocations: 5.736 MB / 0.4927 GB, free: 5.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.418, allocations: 12.03 kB / 0.4928 GB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006566/0.4246, allocations: 1.825 MB / 0.4945 GB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003325/0.428, allocations: 1.572 MB / 0.4961 GB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.4282, allocations: 184.6 kB / 0.4963 GB, free: 1.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005345/0.4287, allocations: 247.8 kB / 0.4965 GB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01615/0.4449, allocations: 9.303 MB / 0.5056 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/0.445, allocations: 39.66 kB / 0.5056 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005293/0.4456, allocations: 119.8 kB / 0.5057 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003276/0.4488, allocations: 2.068 MB / 0.5077 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/0.4661, allocations: 8.253 MB / 0.5158 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0656/0.5317, allocations: 29.91 MB / 0.545 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01243/0.5443, allocations: 3.033 MB / 0.548 GB, free: 11.63 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002822/0.5471, allocations: 1.112 MB / 0.5491 GB, free: 10.52 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.5598, allocations: 6.284 MB / 0.5552 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.258e-05/0.5599, allocations: 47.88 kB / 0.5552 GB, free: 3.516 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 6.703e-06/0.5599, allocations: 0 / 0.5552 GB, free: 3.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.03231/0.5923, allocations: 8.297 MB / 0.5633 GB, free: 11.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.5924, allocations: 73.41 kB / 0.5634 GB, free: 11.06 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00508/0.5975, allocations: 3.073 MB / 0.5664 GB, free: 7.965 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.5976, allocations: 57.7 kB / 0.5665 GB, free: 7.902 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.5993, allocations: 2.42 MB / 0.5688 GB, free: 5.449 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007563/0.6001, allocations: 0.844 MB / 0.5697 GB, free: 4.594 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001323/0.6014, allocations: 0.9885 MB / 0.5706 GB, free: 3.594 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.6016, allocations: 305.1 kB / 0.5709 GB, free: 3.293 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002635/0.6042, allocations: 1.634 MB / 0.5725 GB, free: 1.652 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004767/0.609, allocations: 4.252 MB / 0.5767 GB, free: 12.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009459/0.6184, allocations: 6.384 MB / 0.5829 GB, free: 4.465 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.53e-05/0.6186, allocations: 28 kB / 0.5829 GB, free: 4.438 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.3288/0.9474, allocations: 6.473 MB / 0.5893 GB, free: 106.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.9476, allocations: 44.28 kB / 0.5893 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000194/0.9478, allocations: 92.66 kB / 0.5894 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/0.95, allocations: 0.7132 MB / 0.5901 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004129/0.9542, allocations: 1.048 MB / 0.5911 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/0.969, allocations: 12.17 MB / 0.603 GB, free: 98.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/0.9733, allocations: 259 kB / 0.6032 GB, free: 98.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006767/0.974, allocations: 291.5 kB / 0.6035 GB, free: 98.18 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 574 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,8,100.0%), (2,17,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.003094/0.9771, allocations: 1.791 MB / 0.6053 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004983/0.9776, allocations: 285.9 kB / 0.6055 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005606/0.9833, allocations: 3.127 MB / 0.6086 GB, free: 96.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001192/0.9834, allocations: 36.47 kB / 0.6086 GB, free: 96.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.9834, allocations: 6.844 kB / 0.6086 GB, free: 96.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.9834, allocations: 15.33 kB / 0.6086 GB, free: 96.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.9982, allocations: 8.199 MB / 0.6166 GB, free: 93.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.9983, allocations: 8.547 kB / 0.6167 GB, free: 93.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.9994, allocations: 307.2 kB / 0.6169 GB, free: 93.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/1.001, allocations: 0.5206 MB / 0.6175 GB, free: 92.88 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/1.001, allocations: 47.06 kB / 0.6175 GB, free: 92.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008797/1.01, allocations: 10.03 MB / 0.6273 GB, free: 85.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.01, allocations: 4.766 kB / 0.6273 GB, free: 85.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007101/1.017, allocations: 4.687 MB / 0.6319 GB, free: 83.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009915/1.018, allocations: 354.1 kB / 0.6322 GB, free: 83.19 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/1.018, allocations: 36.59 kB / 0.6323 GB, free: 83.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/1.019, allocations: 103.3 kB / 0.6323 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003644/1.02, allocations: 149.8 kB / 0.6325 GB, free: 83.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/1.02, allocations: 64.09 kB / 0.6326 GB, free: 83.01 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002764/1.023, allocations: 1.96 MB / 0.6345 GB, free: 81.99 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.023, allocations: 0 / 0.6345 GB, free: 81.99 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00567/1.028, allocations: 0.9095 MB / 0.6354 GB, free: 81.75 MB / 462.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,revolute4.phi,revolute4.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 (170): * Single equations (assignments): 161 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,6,100.0%), (2,15,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005202/1.029, allocations: 185 kB / 0.6355 GB, free: 81.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006994/1.036, allocations: 4.717 MB / 0.6401 GB, free: 76.81 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/1.036, allocations: 0 / 0.6401 GB, free: 76.81 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00204/1.038, allocations: 1.975 MB / 0.6421 GB, free: 74.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/1.04, allocations: 463.5 kB / 0.6425 GB, free: 74.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.054, allocations: 7.889 MB / 0.6502 GB, free: 66.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002863/1.057, allocations: 2.923 MB / 0.6531 GB, free: 63.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002831/1.06, allocations: 1.366 MB / 0.6544 GB, free: 62.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000425/1.06, allocations: 215.4 kB / 0.6546 GB, free: 61.85 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/1.06, allocations: 0 / 0.6546 GB, free: 61.85 MB / 462.1 MB Notification: Performance of Templates: time 0.05883/1.119, allocations: 33.33 MB / 0.6872 GB, free: 28.77 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)