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.001473/0.001473, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002464/0.002464, allocations: 192.3 kB / 16.66 MB, free: 6.582 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.514/1.514, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1912/0.1912, allocations: 9.122 MB / 299.6 MB, free: 1.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 63.91 kB / 414.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3252, allocations: 51.42 MB / 466.1 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01053/0.3358, allocations: 10.49 MB / 476.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007003/0.3428, allocations: 2.97 MB / 479.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002314/0.3452, allocations: 43.44 kB / 479.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.3466, allocations: 448 kB / 480 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005078/0.3518, allocations: 1.588 MB / 481.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.3527, allocations: 215.4 kB / 481.8 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00415/0.3569, allocations: 3.022 MB / 484.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001723/0.3586, allocations: 1.186 MB / 486 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.3607, allocations: 1.094 MB / 487.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002415/0.3631, allocations: 1.54 MB / 488.6 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007176/0.3638, allocations: 276.8 kB / 488.9 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/0.3658, allocations: 0.8844 MB / 489.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.3671, allocations: 1.397 MB / 491.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002039/0.3691, allocations: 1.855 MB / 493.1 MB, free: 216 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008878/0.378, allocations: 5.741 MB / 498.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3781, allocations: 0 / 498.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3781, allocations: 0 / 498.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002364/0.3783, allocations: 0 / 498.8 MB, free: 11.38 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.01645/0.3948, allocations: 5.843 MB / 0.4928 GB, free: 5.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.028e-05/0.3949, allocations: 12.03 kB / 0.4928 GB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007132/0.402, allocations: 1.847 MB / 0.4946 GB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003806/0.4059, allocations: 1.576 MB / 0.4962 GB, free: 1.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/0.4061, allocations: 188.6 kB / 0.4963 GB, free: 1.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/0.4073, allocations: 235.9 kB / 0.4966 GB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/0.4275, allocations: 9.319 MB / 0.5057 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002006/0.4278, allocations: 31.7 kB / 0.5057 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00123/0.429, allocations: 115.8 kB / 0.5058 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003724/0.4327, allocations: 2.076 MB / 0.5078 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02002/0.4528, allocations: 8.241 MB / 0.5159 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04729/0.5001, allocations: 29.99 MB / 0.5452 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008562/0.5087, allocations: 3.037 MB / 0.5481 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002589/0.5114, allocations: 1.109 MB / 0.5492 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.5218, allocations: 6.296 MB / 0.5554 GB, free: 3.418 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.5219, allocations: 47.88 kB / 0.5554 GB, free: 3.363 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 4.679e-06/0.5219, allocations: 0 / 0.5554 GB, free: 3.363 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.0238/0.5457, allocations: 8.35 MB / 0.5636 GB, free: 10.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.5458, allocations: 73.41 kB / 0.5636 GB, free: 10.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005761/0.5516, allocations: 3.077 MB / 0.5666 GB, free: 7.762 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001726/0.5518, allocations: 57.7 kB / 0.5667 GB, free: 7.699 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/0.5537, allocations: 2.525 MB / 0.5692 GB, free: 5.152 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009312/0.5546, allocations: 0.8834 MB / 0.57 GB, free: 4.262 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001724/0.5564, allocations: 0.9815 MB / 0.571 GB, free: 3.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5565, allocations: 309.1 kB / 0.5713 GB, free: 2.965 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002975/0.5595, allocations: 1.63 MB / 0.5729 GB, free: 1.328 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00461/0.5641, allocations: 4.26 MB / 0.577 GB, free: 11.78 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007983/0.5721, allocations: 6.392 MB / 0.5833 GB, free: 4.125 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.463e-05/0.5722, allocations: 28 kB / 0.5833 GB, free: 4.098 MB / 462.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.3554/0.9276, allocations: 6.492 MB / 0.5896 GB, free: 106.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.951e-05/0.9277, allocations: 44.03 kB / 0.5897 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001646/0.9279, allocations: 90.91 kB / 0.5898 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002638/0.9306, allocations: 0.7102 MB / 0.5905 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005405/0.936, allocations: 1.051 MB / 0.5915 GB, free: 106.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01906/0.9551, allocations: 12.18 MB / 0.6034 GB, free: 98.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005945/0.9611, allocations: 261.5 kB / 0.6036 GB, free: 98.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001075/0.9622, allocations: 287 kB / 0.6039 GB, free: 98.29 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.004155/0.9663, allocations: 1.785 MB / 0.6057 GB, free: 97.47 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005387/0.9669, allocations: 300.3 kB / 0.6059 GB, free: 97.46 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005357/0.9722, allocations: 3.133 MB / 0.609 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/0.9724, allocations: 33.59 kB / 0.609 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.9724, allocations: 5.375 kB / 0.609 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.128e-05/0.9724, allocations: 19.48 kB / 0.6091 GB, free: 96.28 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/0.9859, allocations: 8.198 MB / 0.6171 GB, free: 93.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.9859, allocations: 11.25 kB / 0.6171 GB, free: 93.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.9871, allocations: 295.6 kB / 0.6174 GB, free: 93.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.9884, allocations: 0.5318 MB / 0.6179 GB, free: 92.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.9885, allocations: 42.56 kB / 0.6179 GB, free: 92.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00764/0.9961, allocations: 10.05 MB / 0.6277 GB, free: 85.49 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.9962, allocations: 3.75 kB / 0.6277 GB, free: 85.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005781/1.002, allocations: 4.703 MB / 0.6323 GB, free: 83.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006496/1.003, allocations: 366.1 kB / 0.6327 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/1.003, allocations: 34.03 kB / 0.6327 GB, free: 83.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/1.004, allocations: 101.6 kB / 0.6328 GB, free: 83.03 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/1.004, allocations: 149 kB / 0.6329 GB, free: 82.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/1.004, allocations: 65.11 kB / 0.633 GB, free: 82.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002438/1.007, allocations: 1.96 MB / 0.6349 GB, free: 81.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.007, allocations: 0 / 0.6349 GB, free: 81.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003622/1.01, allocations: 0.9141 MB / 0.6358 GB, free: 81.31 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.0003719/1.011, allocations: 175.4 kB / 0.636 GB, free: 81.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006067/1.017, allocations: 4.731 MB / 0.6406 GB, free: 76.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/1.017, allocations: 0 / 0.6406 GB, free: 76.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/1.019, allocations: 1.986 MB / 0.6425 GB, free: 74.31 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/1.021, allocations: 461.9 kB / 0.643 GB, free: 73.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/1.032, allocations: 8.019 MB / 0.6508 GB, free: 65.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002287/1.034, allocations: 2.925 MB / 0.6537 GB, free: 62.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00259/1.037, allocations: 1.366 MB / 0.655 GB, free: 61.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004389/1.037, allocations: 211.4 kB / 0.6552 GB, free: 61.27 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/1.037, allocations: 0 / 0.6552 GB, free: 61.27 MB / 462.1 MB Notification: Performance of Templates: time 0.05381/1.091, allocations: 33.33 MB / 0.6877 GB, free: 28.18 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)