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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 170.2 kB / 16.11 MB, free: 5.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.2 MB / 240.1 MB, free: 1.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007874/0.0007874, allocations: 95.86 kB / 291.3 MB, free: 13.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04059/0.04059, allocations: 8.934 MB / 351.4 MB, free: 1.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003532, allocations: 11.41 kB / 414.4 MB, free: 88.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 52.39 MB / 466.8 MB, free: 41.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2918/0.4005, allocations: 88.64 MB / 0.5424 GB, free: 16.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.4008, allocations: 79.66 kB / 0.5425 GB, free: 16.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1626/0.5634, allocations: 73.67 MB / 0.6144 GB, free: 3.477 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.5635, allocations: 0 / 0.6144 GB, free: 3.477 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001401/0.5636, allocations: 60 kB / 0.6145 GB, free: 3.418 MB / 378.7 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.01475/0.5784, allocations: 3.883 MB / 0.6183 GB, free: 15.76 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.5784, allocations: 8.031 kB / 0.6183 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009625/0.5881, allocations: 2.016 MB / 0.6202 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00522/0.5933, allocations: 1.955 MB / 0.6222 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/0.5937, allocations: 267.5 kB / 0.6224 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.5956, allocations: 348.3 kB / 0.6227 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01788/0.6135, allocations: 8.865 MB / 0.6314 GB, free: 3.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001403/0.6137, allocations: 39.66 kB / 0.6314 GB, free: 3.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008253/0.6145, allocations: 159.9 kB / 0.6316 GB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001456/0.616, allocations: 1.033 MB / 0.6326 GB, free: 2.148 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/0.6312, allocations: 8.097 MB / 0.6405 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04003/0.6713, allocations: 29.95 MB / 0.6698 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006834/0.6781, allocations: 3.04 MB / 0.6727 GB, free: 8.289 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.6798, allocations: 1.096 MB / 0.6738 GB, free: 7.188 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007962/0.6878, allocations: 6.272 MB / 0.6799 GB, free: 256 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.6878, allocations: 47.88 kB / 0.68 GB, free: 196 kB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 4.308e-06/0.6879, allocations: 0 / 0.68 GB, free: 196 kB / 442.7 MB Notification: Performance of matching and sorting (n=233): time 0.02063/0.7085, allocations: 8.097 MB / 0.6879 GB, free: 8.043 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.7086, allocations: 73.41 kB / 0.6879 GB, free: 7.961 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/0.7129, allocations: 2.998 MB / 0.6909 GB, free: 4.941 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.7131, allocations: 61.64 kB / 0.6909 GB, free: 4.875 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001555/0.7146, allocations: 2.421 MB / 0.6933 GB, free: 2.422 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007401/0.7154, allocations: 0.8401 MB / 0.6941 GB, free: 1.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.7156, allocations: 96 kB / 0.6942 GB, free: 1.477 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003197/0.7159, allocations: 0.5129 MB / 0.6947 GB, free: 0.957 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2116/0.9276, allocations: 1.597 MB / 0.6963 GB, free: 109.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004358/0.932, allocations: 4.205 MB / 0.7004 GB, free: 106.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006513/0.9385, allocations: 6.327 MB / 0.7066 GB, free: 103.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-05/0.9386, allocations: 27.16 kB / 0.7066 GB, free: 103.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=657) (initialization): time 0.01065/0.9493, allocations: 6.385 MB / 0.7128 GB, free: 102.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.204e-05/0.9494, allocations: 47.75 kB / 0.7129 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/0.9496, allocations: 90.03 kB / 0.7129 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001695/0.9513, allocations: 0.6866 MB / 0.7136 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/0.9543, allocations: 1.052 MB / 0.7146 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/0.9674, allocations: 12.39 MB / 0.7267 GB, free: 95.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004254/0.9717, allocations: 253 kB / 0.727 GB, free: 95.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/0.9727, allocations: 289.3 kB / 0.7273 GB, free: 95.68 MB / 458.7 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 (581): * Single equations (assignments): 572 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(2,100.0%) 10,(1,100.0%) 1} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.003842/0.9766, allocations: 1.792 MB / 0.729 GB, free: 95.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/0.9771, allocations: 280.3 kB / 0.7293 GB, free: 95.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005423/0.9825, allocations: 3.089 MB / 0.7323 GB, free: 95.26 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001346/0.9827, allocations: 38.16 kB / 0.7323 GB, free: 95.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.966e-05/0.9827, allocations: 6.156 kB / 0.7323 GB, free: 95.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/0.9827, allocations: 11.06 kB / 0.7323 GB, free: 95.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.9958, allocations: 8.223 MB / 0.7404 GB, free: 93.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.9959, allocations: 3.031 kB / 0.7404 GB, free: 93.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.9969, allocations: 305.2 kB / 0.7407 GB, free: 93.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.998, allocations: 0.5109 MB / 0.7412 GB, free: 93.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.9981, allocations: 38.41 kB / 0.7412 GB, free: 93.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008341/1.006, allocations: 10.68 MB / 0.7516 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.007, allocations: 3.156 kB / 0.7516 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006134/1.013, allocations: 4.634 MB / 0.7562 GB, free: 82.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009097/1.014, allocations: 368.4 kB / 0.7565 GB, free: 82.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002791/1.014, allocations: 37.64 kB / 0.7565 GB, free: 82.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/1.015, allocations: 96.58 kB / 0.7566 GB, free: 82.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/1.015, allocations: 146.4 kB / 0.7568 GB, free: 82.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/1.015, allocations: 68.33 kB / 0.7568 GB, free: 82.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00301/1.018, allocations: 1.902 MB / 0.7587 GB, free: 81.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.018, allocations: 0 / 0.7587 GB, free: 81.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006059/1.024, allocations: 0.9097 MB / 0.7596 GB, free: 81.68 MB / 458.7 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 (169): * Single equations (assignments): 160 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005247/1.025, allocations: 192.1 kB / 0.7598 GB, free: 81.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006649/1.032, allocations: 4.652 MB / 0.7643 GB, free: 79.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/1.032, allocations: 0 / 0.7643 GB, free: 79.54 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002378/1.034, allocations: 1.953 MB / 0.7662 GB, free: 78.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/1.038, allocations: 437.2 kB / 0.7666 GB, free: 78.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/1.052, allocations: 9.435 MB / 0.7759 GB, free: 72.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/1.055, allocations: 2.928 MB / 0.7787 GB, free: 69.72 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003342/1.059, allocations: 1.372 MB / 0.7801 GB, free: 68.86 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/1.059, allocations: 206.7 kB / 0.7803 GB, free: 68.67 MB / 458.7 MB Notification: Performance of SimCode: time 8.11e-07/1.059, allocations: 0 / 0.7803 GB, free: 68.67 MB / 458.7 MB Notification: Performance of Templates: time 0.05661/1.116, allocations: 33.52 MB / 0.813 GB, free: 44.67 MB / 458.7 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)