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.001037/0.001037, allocations: 115.5 kB / 16.37 MB, free: 6.004 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.001875/0.001875, allocations: 195.6 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04305/0.04305, allocations: 9.119 MB / 300.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 363.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2326, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.007994/0.2407, allocations: 10.49 MB / 425.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005274/0.246, allocations: 2.98 MB / 428.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.2473, allocations: 39.94 kB / 428.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009069/0.2482, allocations: 452.8 kB / 428.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002877/0.2511, allocations: 1.579 MB / 430.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.2517, allocations: 223.6 kB / 430.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002899/0.2546, allocations: 3.028 MB / 433.6 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.2559, allocations: 1.178 MB / 434.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.257, allocations: 1.097 MB / 435.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.2583, allocations: 1.545 MB / 437.4 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000335/0.2587, allocations: 276 kB / 437.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.2599, allocations: 0.8777 MB / 438.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008802/0.2608, allocations: 1.391 MB / 439.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001902/0.2627, allocations: 1.868 MB / 441.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0069/0.2696, allocations: 5.679 MB / 447.5 MB, free: 8.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.2697, allocations: 0 / 447.5 MB, free: 8.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2697, allocations: 0 / 447.5 MB, free: 8.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.2698, allocations: 0 / 447.5 MB, free: 8.051 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.01432/0.2841, allocations: 5.74 MB / 453.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/0.2842, allocations: 12.02 kB / 453.2 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007043/0.2913, allocations: 1.825 MB / 455.1 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003389/0.2947, allocations: 1.572 MB / 456.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.2948, allocations: 184.6 kB / 456.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005006/0.2953, allocations: 247.8 kB / 457.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/0.3087, allocations: 9.315 MB / 466.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.766e-05/0.3089, allocations: 31.66 kB / 466.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.3092, allocations: 115.8 kB / 466.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003252/0.3124, allocations: 2.075 MB / 468.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01582/0.3283, allocations: 8.237 MB / 476.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0421/0.3704, allocations: 29.93 MB / 0.4949 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007492/0.3779, allocations: 3.036 MB / 0.4979 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.3797, allocations: 1.108 MB / 0.4989 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008827/0.3885, allocations: 6.276 MB / 0.5051 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.3886, allocations: 55.81 kB / 0.5051 GB, free: 236 kB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 3.306e-06/0.3886, allocations: 3.938 kB / 0.5051 GB, free: 232 kB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.2153/0.6039, allocations: 8.267 MB / 0.5132 GB, free: 86.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.604, allocations: 74.31 kB / 0.5133 GB, free: 86.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004353/0.6083, allocations: 3.071 MB / 0.5163 GB, free: 85.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.6085, allocations: 66.12 kB / 0.5163 GB, free: 85.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.6097, allocations: 2.415 MB / 0.5187 GB, free: 83.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/0.6103, allocations: 0.8463 MB / 0.5195 GB, free: 83.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009891/0.6113, allocations: 0.9869 MB / 0.5205 GB, free: 82.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.6113, allocations: 301.1 kB / 0.5208 GB, free: 82.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.6133, allocations: 1.635 MB / 0.5224 GB, free: 81.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002858/0.6162, allocations: 4.257 MB / 0.5265 GB, free: 77.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005192/0.6214, allocations: 6.381 MB / 0.5328 GB, free: 70.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.781e-05/0.6215, allocations: 28 kB / 0.5328 GB, free: 70.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.008852/0.6303, allocations: 6.484 MB / 0.5391 GB, free: 64.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.323e-05/0.6304, allocations: 48 kB / 0.5392 GB, free: 64.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.548e-05/0.6305, allocations: 88 kB / 0.5392 GB, free: 64.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001518/0.632, allocations: 0.7053 MB / 0.5399 GB, free: 63.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00259/0.6346, allocations: 1.049 MB / 0.541 GB, free: 62.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009658/0.6443, allocations: 12.17 MB / 0.5528 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003388/0.6477, allocations: 267.4 kB / 0.5531 GB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004105/0.6481, allocations: 288 kB / 0.5534 GB, free: 49.01 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.0021/0.6502, allocations: 1.788 MB / 0.5551 GB, free: 47.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.6506, allocations: 284.3 kB / 0.5554 GB, free: 46.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003934/0.6545, allocations: 3.124 MB / 0.5584 GB, free: 43.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.835e-05/0.6546, allocations: 31.98 kB / 0.5585 GB, free: 43.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.6546, allocations: 8 kB / 0.5585 GB, free: 43.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.6546, allocations: 15.95 kB / 0.5585 GB, free: 43.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.6656, allocations: 8.209 MB / 0.5665 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.6656, allocations: 4.75 kB / 0.5665 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009266/0.6666, allocations: 300 kB / 0.5668 GB, free: 35.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.6676, allocations: 0.531 MB / 0.5673 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.435e-05/0.6677, allocations: 55.75 kB / 0.5674 GB, free: 34.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007214/0.675, allocations: 10.01 MB / 0.5772 GB, free: 23.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.675, allocations: 11.88 kB / 0.5772 GB, free: 23.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005446/0.6804, allocations: 4.684 MB / 0.5817 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007307/0.6812, allocations: 357.5 kB / 0.5821 GB, free: 18.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002739/0.6815, allocations: 47.98 kB / 0.5821 GB, free: 18.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008863/0.6823, allocations: 91.89 kB / 0.5822 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.6826, allocations: 152.8 kB / 0.5824 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6827, allocations: 60 kB / 0.5824 GB, free: 18.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002442/0.6851, allocations: 1.968 MB / 0.5843 GB, free: 16.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6852, allocations: 0 / 0.5843 GB, free: 16.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004867/0.69, allocations: 0.901 MB / 0.5852 GB, free: 15.58 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.0004003/0.6905, allocations: 185.3 kB / 0.5854 GB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005431/0.6959, allocations: 4.709 MB / 0.59 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.6959, allocations: 8.188 kB / 0.59 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.6978, allocations: 1.967 MB / 0.5919 GB, free: 8.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.6997, allocations: 480.9 kB / 0.5924 GB, free: 8.156 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009373/0.7091, allocations: 7.869 MB / 0.6001 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002956/0.7121, allocations: 2.925 MB / 0.6029 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0029/0.715, allocations: 1.37 MB / 0.6043 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004588/0.7155, allocations: 203.4 kB / 0.6045 GB, free: 11.69 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.7155, allocations: 0 / 0.6045 GB, free: 11.69 MB / 398.1 MB Notification: Performance of Templates: time 0.05604/0.7715, allocations: 31.5 MB / 0.6352 GB, free: 12.48 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 cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop.pipe 2>&1)