Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") translateModel(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 171.4 kB / 7.641 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.001105/0.001105, allocations: 95.12 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03663/0.03663, allocations: 8.83 MB / 340.1 MB, free: 6.414 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.537e-05/1.541e-05, allocations: 7.141 kB / 398.7 MB, free: 47.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08317, allocations: 52.38 MB / 451.1 MB, free: 4.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3167/0.3999, allocations: 87.82 MB / 0.5263 GB, free: 80.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.4002, allocations: 78.86 kB / 0.5263 GB, free: 80.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1599/0.5601, allocations: 72 MB / 0.5966 GB, free: 18.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5601, allocations: 0 / 0.5966 GB, free: 18.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001368/0.5603, allocations: 71.98 kB / 0.5967 GB, free: 17.98 MB / 362.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.01359/0.5739, allocations: 3.921 MB / 0.6005 GB, free: 14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.5739, allocations: 8.031 kB / 0.6006 GB, free: 14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009347/0.5833, allocations: 2.007 MB / 0.6025 GB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004765/0.5881, allocations: 1.927 MB / 0.6044 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.5883, allocations: 116 kB / 0.6045 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001918/0.5902, allocations: 196 kB / 0.6047 GB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01039/0.6006, allocations: 6.031 MB / 0.6106 GB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02196/0.6226, allocations: 8.093 MB / 0.6185 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002473/0.6229, allocations: 31.66 kB / 0.6185 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001777/0.6247, allocations: 16 kB / 0.6185 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001899/0.6266, allocations: 1.037 MB / 0.6195 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04842/0.6751, allocations: 29.31 MB / 0.6482 GB, free: 11.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004788/0.6799, allocations: 2.875 MB / 0.651 GB, free: 8.973 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.6816, allocations: 0.9912 MB / 0.6519 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007636/0.6892, allocations: 5.427 MB / 0.6572 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.6893, allocations: 47.88 kB / 0.6573 GB, free: 1.945 MB / 410.7 MB Notification: Performance of pre-optimization done (n=173): time 4.238e-06/0.6893, allocations: 4 kB / 0.6573 GB, free: 1.941 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.02044/0.7098, allocations: 9.246 MB / 0.6663 GB, free: 8.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.7099, allocations: 77.41 kB / 0.6664 GB, free: 8.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005846/0.7157, allocations: 2.176 MB / 0.6685 GB, free: 6.297 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000371/0.7161, allocations: 29.7 kB / 0.6685 GB, free: 6.262 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/0.7184, allocations: 2.499 MB / 0.671 GB, free: 3.723 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/0.7196, allocations: 0.8245 MB / 0.6718 GB, free: 2.887 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004575/0.72, allocations: 0 / 0.6718 GB, free: 2.887 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005777/0.7206, allocations: 0.5729 MB / 0.6723 GB, free: 2.305 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002886/0.7235, allocations: 1.576 MB / 0.6739 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004725/0.7283, allocations: 4.297 MB / 0.6781 GB, free: 11.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004056/0.7323, allocations: 2.643 MB / 0.6807 GB, free: 8.426 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-05/0.7324, allocations: 35.94 kB / 0.6807 GB, free: 8.391 MB / 442.7 MB Notification: Performance of matching and sorting (n=690) (initialization): time 0.01064/0.7431, allocations: 5.989 MB / 0.6865 GB, free: 2.387 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-05/0.7432, allocations: 52.06 kB / 0.6866 GB, free: 2.336 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001238/0.7433, allocations: 92 kB / 0.6867 GB, free: 2.246 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/0.745, allocations: 0.695 MB / 0.6874 GB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003411/0.7484, allocations: 1.111 MB / 0.6884 GB, free: 432 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.273/1.021, allocations: 11.93 MB / 0.7001 GB, free: 97.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004314/1.026, allocations: 188.8 kB / 0.7003 GB, free: 97.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/1.027, allocations: 307.5 kB / 0.7006 GB, free: 97.34 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: fixedTranslation1.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real fixedTranslation2.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 437 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (612): * Single equations (assignments): 601 * Array equations: 6 * 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,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001522/1.029, allocations: 359.7 kB / 0.7009 GB, free: 97.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006576/1.029, allocations: 251.2 kB / 0.7012 GB, free: 97.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00676/1.036, allocations: 3.079 MB / 0.7042 GB, free: 97.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005049/1.041, allocations: 2.704 MB / 0.7068 GB, free: 96.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-05/1.041, allocations: 8.297 kB / 0.7068 GB, free: 96.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.754e-05/1.041, allocations: 9.562 kB / 0.7068 GB, free: 96.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01778/1.059, allocations: 9.339 MB / 0.7159 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/1.059, allocations: 0 / 0.7159 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009375/1.06, allocations: 270.2 kB / 0.7162 GB, free: 96.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/1.062, allocations: 0.6991 MB / 0.7169 GB, free: 95.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/1.062, allocations: 11.7 kB / 0.7169 GB, free: 95.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009701/1.071, allocations: 11.82 MB / 0.7284 GB, free: 89.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004703/1.076, allocations: 5.48 MB / 0.7338 GB, free: 85.64 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005592/1.082, allocations: 4.668 MB / 0.7383 GB, free: 83.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006831/1.083, allocations: 320 kB / 0.7386 GB, free: 83.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/1.083, allocations: 7.531 kB / 0.7387 GB, free: 83.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/1.084, allocations: 74.67 kB / 0.7387 GB, free: 83.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002652/1.084, allocations: 153.6 kB / 0.7389 GB, free: 83.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/1.084, allocations: 62.66 kB / 0.7389 GB, free: 83.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001725/1.086, allocations: 1.447 MB / 0.7403 GB, free: 82.86 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.31e-07/1.086, allocations: 0 / 0.7403 GB, free: 82.86 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004031/1.09, allocations: 0.8544 MB / 0.7412 GB, free: 82.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (152): * Single equations (assignments): 143 * 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,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004094/1.09, allocations: 156.8 kB / 0.7413 GB, free: 82.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005686/1.096, allocations: 4.467 MB / 0.7457 GB, free: 81.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/1.096, allocations: 0 / 0.7457 GB, free: 81.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002399/1.098, allocations: 1.984 MB / 0.7476 GB, free: 80.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/1.1, allocations: 242.4 kB / 0.7479 GB, free: 79.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009824/1.11, allocations: 6.494 MB / 0.7542 GB, free: 77.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002953/1.113, allocations: 3.032 MB / 0.7572 GB, free: 75.11 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003336/1.116, allocations: 1.367 MB / 0.7585 GB, free: 74.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/1.117, allocations: 201.2 kB / 0.7587 GB, free: 74.14 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/1.117, allocations: 0 / 0.7587 GB, free: 74.14 MB / 442.7 MB Notification: Performance of Templates: time 0.04802/1.165, allocations: 29.79 MB / 0.7878 GB, free: 51.73 MB / 442.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection.pipe 2>&1)