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/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.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.001378/0.001378, allocations: 112.6 kB / 16.37 MB, free: 6 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.001531/0.001532, allocations: 196 kB / 17.31 MB, free: 5.613 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04578/0.04578, allocations: 9.102 MB / 300.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 59.89 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.229, allocations: 51.42 MB / 414.8 MB, free: 24.87 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.008002/0.237, allocations: 10.49 MB / 425.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004993/0.2421, allocations: 2.986 MB / 428.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.2432, allocations: 39.94 kB / 428.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008415/0.2441, allocations: 448.8 kB / 428.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.2467, allocations: 1.575 MB / 430.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.2471, allocations: 223.6 kB / 430.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002135/0.2493, allocations: 3.034 MB / 433.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.2505, allocations: 1.182 MB / 434.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.2518, allocations: 1.089 MB / 435.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.2532, allocations: 1.541 MB / 437.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003559/0.2536, allocations: 280 kB / 437.7 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.2548, allocations: 0.8738 MB / 438.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008972/0.2557, allocations: 1.398 MB / 439.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.2573, allocations: 1.864 MB / 441.8 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005936/0.2632, allocations: 5.681 MB / 447.5 MB, free: 8.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2632, allocations: 3.984 kB / 447.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2633, allocations: 0 / 447.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.737e-05/0.2634, allocations: 4 kB / 447.5 MB, free: 8.055 MB / 318.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.01243/0.2758, allocations: 5.733 MB / 453.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.2758, allocations: 8.031 kB / 453.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006295/0.2822, allocations: 1.829 MB / 455.1 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003699/0.2859, allocations: 1.572 MB / 456.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.2861, allocations: 188.6 kB / 456.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006854/0.2868, allocations: 247.8 kB / 457.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.3008, allocations: 9.303 MB / 466.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.818e-05/0.3009, allocations: 39.64 kB / 466.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003071/0.3012, allocations: 115.8 kB / 466.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002939/0.3041, allocations: 2.072 MB / 468.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/0.3194, allocations: 8.245 MB / 476.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03806/0.3575, allocations: 29.93 MB / 0.4949 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007744/0.3652, allocations: 3.033 MB / 0.4979 GB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/0.3672, allocations: 1.116 MB / 0.4989 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009115/0.3763, allocations: 6.272 MB / 0.5051 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.127e-05/0.3764, allocations: 55.81 kB / 0.5051 GB, free: 248 kB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.547e-06/0.3764, allocations: 3.938 kB / 0.5051 GB, free: 244 kB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.2242/0.6006, allocations: 8.271 MB / 0.5132 GB, free: 86.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.6007, allocations: 73.09 kB / 0.5133 GB, free: 86.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003602/0.6043, allocations: 3.068 MB / 0.5163 GB, free: 85.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.6044, allocations: 56.92 kB / 0.5163 GB, free: 85.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.6055, allocations: 2.429 MB / 0.5187 GB, free: 83.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004485/0.6059, allocations: 0.8426 MB / 0.5195 GB, free: 83.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009689/0.6069, allocations: 0.9897 MB / 0.5205 GB, free: 82.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.264e-05/0.607, allocations: 301.1 kB / 0.5208 GB, free: 82.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002038/0.609, allocations: 1.633 MB / 0.5224 GB, free: 81.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002902/0.6119, allocations: 4.257 MB / 0.5265 GB, free: 77.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005151/0.6171, allocations: 6.377 MB / 0.5328 GB, free: 70.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.883e-05/0.6171, allocations: 28 kB / 0.5328 GB, free: 70.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.009201/0.6263, allocations: 6.492 MB / 0.5391 GB, free: 64.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.457e-05/0.6264, allocations: 44 kB / 0.5392 GB, free: 64.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001456/0.6266, allocations: 88 kB / 0.5392 GB, free: 64.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001791/0.6284, allocations: 0.7101 MB / 0.5399 GB, free: 63.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003058/0.6315, allocations: 1.049 MB / 0.541 GB, free: 62.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.6421, allocations: 12.17 MB / 0.5528 GB, free: 49.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003784/0.646, allocations: 260.5 kB / 0.5531 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007372/0.6467, allocations: 288 kB / 0.5534 GB, free: 49.04 MB / 382.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.003211/0.6499, allocations: 1.792 MB / 0.5551 GB, free: 47.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006757/0.6506, allocations: 284.3 kB / 0.5554 GB, free: 46.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/0.6556, allocations: 3.12 MB / 0.5584 GB, free: 43.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.694e-05/0.6557, allocations: 39.97 kB / 0.5585 GB, free: 43.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-05/0.6558, allocations: 8 kB / 0.5585 GB, free: 43.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.6558, allocations: 8.031 kB / 0.5585 GB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/0.6704, allocations: 8.219 MB / 0.5665 GB, free: 35.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/0.6705, allocations: 4.469 kB / 0.5665 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.6715, allocations: 300.3 kB / 0.5668 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.6727, allocations: 0.5312 MB / 0.5673 GB, free: 34.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.6729, allocations: 51.77 kB / 0.5674 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007735/0.6806, allocations: 10.01 MB / 0.5772 GB, free: 23.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.6806, allocations: 15.94 kB / 0.5772 GB, free: 23.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006304/0.687, allocations: 4.687 MB / 0.5817 GB, free: 19.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009539/0.6879, allocations: 353.5 kB / 0.5821 GB, free: 18.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006615/0.6886, allocations: 40 kB / 0.5821 GB, free: 18.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.6899, allocations: 91.89 kB / 0.5822 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/0.6902, allocations: 157.6 kB / 0.5824 GB, free: 18.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.6904, allocations: 67.11 kB / 0.5824 GB, free: 18.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.6933, allocations: 1.961 MB / 0.5843 GB, free: 16.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.6933, allocations: 0 / 0.5843 GB, free: 16.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004212/0.6975, allocations: 0.901 MB / 0.5852 GB, free: 15.61 MB / 382.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.0004419/0.698, allocations: 179.4 kB / 0.5854 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006165/0.7041, allocations: 4.718 MB / 0.59 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.7042, allocations: 0 / 0.59 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/0.7063, allocations: 1.969 MB / 0.5919 GB, free: 8.637 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/0.7089, allocations: 471.6 kB / 0.5924 GB, free: 8.195 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.7206, allocations: 7.877 MB / 0.6001 GB, free: 264 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004161/0.7248, allocations: 2.933 MB / 0.6029 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003399/0.7282, allocations: 1.366 MB / 0.6043 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006898/0.7289, allocations: 211.4 kB / 0.6045 GB, free: 11.72 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.7289, allocations: 0 / 0.6045 GB, free: 11.72 MB / 398.1 MB Notification: Performance of Templates: time 0.06275/0.7916, allocations: 31.49 MB / 0.6352 GB, free: 12.52 MB / 430.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)