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.001474/0.001474, allocations: 102.2 kB / 16.27 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.001685/0.001685, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.407/1.407, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.046/0.046, allocations: 9.112 MB / 300.2 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 63.89 kB / 362.6 MB, free: 7.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1918, allocations: 51.43 MB / 414 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.007972/0.1998, allocations: 10.49 MB / 424.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004865/0.2047, allocations: 2.98 MB / 427.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.206, allocations: 47.88 kB / 427.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009136/0.207, allocations: 444.9 kB / 428 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003012/0.21, allocations: 1.591 MB / 429.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004796/0.2105, allocations: 211.7 kB / 429.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.213, allocations: 3.016 MB / 432.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.2143, allocations: 1.178 MB / 434 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.2155, allocations: 1.093 MB / 435.1 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.217, allocations: 1.545 MB / 436.6 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004838/0.2175, allocations: 276 kB / 436.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.2188, allocations: 0.8738 MB / 437.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009192/0.2197, allocations: 1.398 MB / 439.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001681/0.2214, allocations: 1.856 MB / 441 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005354/0.2268, allocations: 5.432 MB / 446.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2268, allocations: 0 / 446.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2269, allocations: 0 / 446.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001259/0.227, allocations: 0 / 446.4 MB, free: 8.469 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.01309/0.2401, allocations: 5.748 MB / 452.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.2401, allocations: 8.031 kB / 452.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007116/0.2473, allocations: 1.825 MB / 454 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/0.2503, allocations: 1.564 MB / 455.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.2504, allocations: 188.6 kB / 455.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005277/0.251, allocations: 239.8 kB / 456 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/0.2657, allocations: 9.311 MB / 465.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.53e-05/0.2658, allocations: 27.72 kB / 465.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000373/0.2662, allocations: 115.8 kB / 465.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003311/0.2695, allocations: 2.076 MB / 467.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01639/0.2859, allocations: 8.253 MB / 475.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04054/0.3265, allocations: 30.01 MB / 0.4939 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007974/0.3345, allocations: 3.04 MB / 0.4969 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/0.3365, allocations: 1.114 MB / 0.498 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008186/0.3447, allocations: 6.284 MB / 0.5041 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.3448, allocations: 43.88 kB / 0.5042 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.178e-06/0.3448, allocations: 0 / 0.5042 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.1799/0.5247, allocations: 8.277 MB / 0.5123 GB, free: 74.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.5248, allocations: 73.81 kB / 0.5123 GB, free: 74.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004483/0.5292, allocations: 3.068 MB / 0.5153 GB, free: 73.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002441/0.5295, allocations: 57.58 kB / 0.5154 GB, free: 73.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.5306, allocations: 2.43 MB / 0.5178 GB, free: 71.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005615/0.5312, allocations: 0.8375 MB / 0.5186 GB, free: 71.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/0.5322, allocations: 0.9839 MB / 0.5195 GB, free: 70.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.827e-05/0.5323, allocations: 305.1 kB / 0.5198 GB, free: 70.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002277/0.5346, allocations: 1.639 MB / 0.5214 GB, free: 69.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003008/0.5376, allocations: 4.248 MB / 0.5256 GB, free: 65.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005529/0.5431, allocations: 6.385 MB / 0.5318 GB, free: 60.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-05/0.5432, allocations: 31.7 kB / 0.5318 GB, free: 60.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.009969/0.5532, allocations: 6.478 MB / 0.5382 GB, free: 54.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.183e-05/0.5533, allocations: 44 kB / 0.5382 GB, free: 54.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.19e-05/0.5534, allocations: 94.08 kB / 0.5383 GB, free: 54.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.555, allocations: 0.7081 MB / 0.539 GB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/0.5581, allocations: 1.059 MB / 0.54 GB, free: 53.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.5686, allocations: 12.18 MB / 0.5519 GB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003477/0.5722, allocations: 255.8 kB / 0.5522 GB, free: 40.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000518/0.5727, allocations: 291.2 kB / 0.5524 GB, free: 40.42 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.002227/0.5749, allocations: 1.783 MB / 0.5542 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004198/0.5754, allocations: 288.3 kB / 0.5545 GB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00437/0.5797, allocations: 3.14 MB / 0.5575 GB, free: 35.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/0.5799, allocations: 35.19 kB / 0.5576 GB, free: 35.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.5799, allocations: 11.94 kB / 0.5576 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.847e-05/0.5799, allocations: 7.969 kB / 0.5576 GB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/0.5913, allocations: 8.319 MB / 0.5657 GB, free: 26.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.5913, allocations: 5.859 kB / 0.5657 GB, free: 26.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.5923, allocations: 299.6 kB / 0.566 GB, free: 26.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001174/0.5935, allocations: 0.5383 MB / 0.5665 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.5936, allocations: 43.98 kB / 0.5666 GB, free: 25.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007529/0.6012, allocations: 10.03 MB / 0.5764 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6012, allocations: 4 kB / 0.5764 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005705/0.6069, allocations: 4.691 MB / 0.5809 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006896/0.6076, allocations: 353.5 kB / 0.5813 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003756/0.608, allocations: 43.94 kB / 0.5813 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.6091, allocations: 95.41 kB / 0.5814 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.6093, allocations: 149.7 kB / 0.5815 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.6094, allocations: 71.92 kB / 0.5816 GB, free: 9.734 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002285/0.6117, allocations: 1.963 MB / 0.5835 GB, free: 7.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6117, allocations: 0 / 0.5835 GB, free: 7.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003558/0.6153, allocations: 0.9019 MB / 0.5844 GB, free: 6.871 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.0003326/0.6156, allocations: 180.8 kB / 0.5846 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01049/0.6261, allocations: 7.131 MB / 0.5916 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.6262, allocations: 4 kB / 0.5916 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/0.629, allocations: 1.963 MB / 0.5935 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.6316, allocations: 482.1 kB / 0.5939 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.6449, allocations: 8.379 MB / 0.6021 GB, free: 4.609 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003204/0.6482, allocations: 2.928 MB / 0.605 GB, free: 1.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008042/0.649, allocations: 255.4 kB / 0.6052 GB, free: 1.395 MB / 398.1 MB Notification: Performance of SimCode: time 1.804e-06/0.649, allocations: 0 / 0.6052 GB, free: 1.395 MB / 398.1 MB Notification: Performance of Templates: time 0.2927/0.9417, allocations: 139.5 MB / 0.7414 GB, free: 113.3 MB / 478.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)