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.001119/0.001126, allocations: 113.5 kB / 16.41 MB, free: 6.492 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.0011/0.0011, allocations: 183 kB / 17.34 MB, free: 5.762 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.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04253/0.04253, allocations: 9.123 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 64.08 kB / 415.3 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09972, allocations: 51.44 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop): time 0.01171/0.1115, allocations: 10.48 MB / 477.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006517/0.118, allocations: 2.978 MB / 480.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.1197, allocations: 47.88 kB / 480.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.1213, allocations: 444.8 kB / 480.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004554/0.1259, allocations: 1.579 MB / 482.3 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008801/0.1268, allocations: 227.6 kB / 482.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004474/0.1313, allocations: 3.025 MB / 485.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00208/0.1334, allocations: 1.174 MB / 486.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.1354, allocations: 1.105 MB / 487.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002534/0.1379, allocations: 1.541 MB / 489.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000951/0.1389, allocations: 276 kB / 489.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002181/0.1411, allocations: 0.8777 MB / 490.5 MB, free: 9.832 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001777/0.1429, allocations: 1.398 MB / 491.9 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00353/0.1464, allocations: 1.872 MB / 493.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006792/0.1532, allocations: 5.702 MB / 499.5 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1533, allocations: 0 / 499.5 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1533, allocations: 0 / 499.5 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001815/0.1535, allocations: 4 kB / 499.5 MB, free: 0.8203 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.01413/0.1676, allocations: 5.733 MB / 0.4934 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.1677, allocations: 8.031 kB / 0.4934 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007133/0.1748, allocations: 1.829 MB / 0.4951 GB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003308/0.1782, allocations: 1.58 MB / 0.4967 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.1784, allocations: 184.6 kB / 0.4969 GB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009423/0.1794, allocations: 247.8 kB / 0.4971 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.246/0.4254, allocations: 9.301 MB / 0.5062 GB, free: 39.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/0.4256, allocations: 31.2 kB / 0.5062 GB, free: 39.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003984/0.426, allocations: 117.8 kB / 0.5063 GB, free: 39.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003893/0.4299, allocations: 2.07 MB / 0.5083 GB, free: 39.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01867/0.4486, allocations: 8.245 MB / 0.5164 GB, free: 36.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03566/0.4843, allocations: 29.93 MB / 0.5456 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/0.4909, allocations: 3.034 MB / 0.5486 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.4923, allocations: 1.112 MB / 0.5497 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006026/0.4983, allocations: 6.278 MB / 0.5558 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.4984, allocations: 51.88 kB / 0.5559 GB, free: 2.309 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.259e-06/0.4984, allocations: 6.766 kB / 0.5559 GB, free: 2.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.02143/0.5199, allocations: 8.289 MB / 0.564 GB, free: 9.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.52, allocations: 73.41 kB / 0.564 GB, free: 9.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004615/0.5246, allocations: 3.069 MB / 0.567 GB, free: 6.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003282/0.5249, allocations: 61.7 kB / 0.5671 GB, free: 6.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.5267, allocations: 2.421 MB / 0.5694 GB, free: 4.258 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009817/0.5277, allocations: 0.8401 MB / 0.5703 GB, free: 3.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/0.529, allocations: 0.9885 MB / 0.5712 GB, free: 2.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5291, allocations: 305.1 kB / 0.5715 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002587/0.5317, allocations: 1.635 MB / 0.5731 GB, free: 476 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004344/0.5361, allocations: 4.256 MB / 0.5773 GB, free: 10.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007963/0.544, allocations: 6.389 MB / 0.5835 GB, free: 3.266 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.18e-05/0.5442, allocations: 24 kB / 0.5835 GB, free: 3.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=659) (initialization): time 0.01294/0.5571, allocations: 6.486 MB / 0.5899 GB, free: 12.74 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.5573, allocations: 44 kB / 0.5899 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001538/0.5575, allocations: 88 kB / 0.59 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/0.5594, allocations: 0.7132 MB / 0.5907 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00342/0.5629, allocations: 1.049 MB / 0.5917 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/0.5772, allocations: 12.16 MB / 0.6036 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00377/0.581, allocations: 263.9 kB / 0.6038 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008412/0.5818, allocations: 284 kB / 0.6041 GB, free: 13.57 MB / 446.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.003623/0.5855, allocations: 1.792 MB / 0.6059 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007082/0.5862, allocations: 280.3 kB / 0.6061 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006081/0.5923, allocations: 3.136 MB / 0.6092 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/0.5924, allocations: 35.92 kB / 0.6092 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.434e-05/0.5925, allocations: 11.94 kB / 0.6092 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.461e-05/0.5925, allocations: 7.969 kB / 0.6092 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/0.6088, allocations: 8.205 MB / 0.6173 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/0.6088, allocations: 4 kB / 0.6173 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.61, allocations: 295.6 kB / 0.6175 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001363/0.6114, allocations: 0.5353 MB / 0.6181 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001925/0.6116, allocations: 51.97 kB / 0.6181 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.6219, allocations: 10.02 MB / 0.6279 GB, free: 4.426 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.622, allocations: 7.938 kB / 0.6279 GB, free: 4.418 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007361/0.6293, allocations: 4.683 MB / 0.6325 GB, free: 15.65 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008214/0.6302, allocations: 353.5 kB / 0.6328 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005943/0.6308, allocations: 43.92 kB / 0.6329 GB, free: 15.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.6321, allocations: 103.9 kB / 0.633 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.6324, allocations: 141.7 kB / 0.6331 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.6326, allocations: 71.98 kB / 0.6332 GB, free: 14.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003332/0.6359, allocations: 1.957 MB / 0.6351 GB, free: 12.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6359, allocations: 4 kB / 0.6351 GB, free: 12.96 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004467/0.6404, allocations: 0.9075 MB / 0.636 GB, free: 12.06 MB / 478.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.0006079/0.641, allocations: 181.5 kB / 0.6361 GB, free: 11.88 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007765/0.6488, allocations: 4.711 MB / 0.6407 GB, free: 7.117 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6489, allocations: 384 / 0.6407 GB, free: 7.117 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002858/0.6517, allocations: 1.975 MB / 0.6427 GB, free: 5.074 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/0.655, allocations: 477.5 kB / 0.6431 GB, free: 4.617 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/0.6714, allocations: 8.277 MB / 0.6512 GB, free: 12.26 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003344/0.6748, allocations: 2.928 MB / 0.6541 GB, free: 9.297 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008833/0.6757, allocations: 255.4 kB / 0.6543 GB, free: 9.047 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6758, allocations: 0 / 0.6543 GB, free: 9.047 MB / 494.1 MB Notification: Performance of Templates: time 0.3429/1.019, allocations: 140.1 MB / 0.7911 GB, free: 119.8 MB / 0.5294 GB 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)