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.001145/0.001145, allocations: 183.4 kB / 15.98 MB, free: 5.77 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.232/1.232, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 109.1 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0409/0.04091, allocations: 8.941 MB / 349 MB, free: 28 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00098/0.00098, allocations: 55.86 kB / 411.1 MB, free: 57.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08142/0.08241, allocations: 51.39 MB / 462.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection): time 0.2067/0.2892, allocations: 44.18 MB / 0.4948 GB, free: 4.402 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01987/0.3091, allocations: 9.257 MB / 0.5038 GB, free: 14.02 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0124/0.3215, allocations: 162.4 kB / 0.504 GB, free: 14.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.3233, allocations: 367.6 kB / 0.5044 GB, free: 13.87 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004611/0.3279, allocations: 1.474 MB / 0.5058 GB, free: 13.11 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.3289, allocations: 182.1 kB / 0.506 GB, free: 12.96 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005378/0.3343, allocations: 4.11 MB / 0.51 GB, free: 10.74 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.3361, allocations: 1.078 MB / 0.511 GB, free: 10.05 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00188/0.338, allocations: 0.9485 MB / 0.512 GB, free: 9.531 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00241/0.3404, allocations: 1.56 MB / 0.5135 GB, free: 8.613 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007359/0.3412, allocations: 170.9 kB / 0.5136 GB, free: 8.613 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002013/0.3432, allocations: 0.8105 MB / 0.5144 GB, free: 8.023 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.3448, allocations: 1.316 MB / 0.5157 GB, free: 6.703 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002727/0.3476, allocations: 1.766 MB / 0.5174 GB, free: 4.926 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005744/0.3533, allocations: 5.264 MB / 0.5226 GB, free: 15.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3534, allocations: 4 kB / 0.5226 GB, free: 15.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.736e-06/0.3534, allocations: 0 / 0.5226 GB, free: 15.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001464/0.3535, allocations: 3.938 kB / 0.5226 GB, free: 15.64 MB / 346.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.01176/0.3653, allocations: 5.721 MB / 0.5282 GB, free: 9.848 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.3653, allocations: 8.031 kB / 0.5282 GB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006401/0.3717, allocations: 1.834 MB / 0.53 GB, free: 8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003106/0.3749, allocations: 1.568 MB / 0.5315 GB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.375, allocations: 180.7 kB / 0.5317 GB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004664/0.3755, allocations: 243.8 kB / 0.5319 GB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.013/0.3885, allocations: 9.307 MB / 0.541 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.506e-05/0.3886, allocations: 27.72 kB / 0.541 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005033/0.3892, allocations: 119.8 kB / 0.5411 GB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002988/0.3922, allocations: 2.076 MB / 0.5432 GB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01567/0.4078, allocations: 8.237 MB / 0.5512 GB, free: 1.707 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04201/0.4499, allocations: 30.02 MB / 0.5805 GB, free: 3.043 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007171/0.4571, allocations: 3.038 MB / 0.5835 GB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.4589, allocations: 1.114 MB / 0.5846 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008067/0.467, allocations: 6.278 MB / 0.5907 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.4671, allocations: 55.88 kB / 0.5908 GB, free: 7.762 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 3.226e-06/0.4671, allocations: 0 / 0.5908 GB, free: 7.762 MB / 410.7 MB Notification: Performance of matching and sorting (n=239): time 0.02789/0.495, allocations: 12.35 MB / 0.6028 GB, free: 11.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00764/0.5027, allocations: 6.625 MB / 0.6093 GB, free: 4.328 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005154/0.5078, allocations: 3.065 MB / 0.6123 GB, free: 1.242 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003168/0.5082, allocations: 61.7 kB / 0.6124 GB, free: 1.176 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001735/0.5099, allocations: 2.424 MB / 0.6147 GB, free: 14.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009168/0.5109, allocations: 0.8671 MB / 0.6156 GB, free: 13.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001768/0.5127, allocations: 1 MB / 0.6165 GB, free: 12.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.773e-05/0.5127, allocations: 301.1 kB / 0.6168 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002864/0.5156, allocations: 1.72 MB / 0.6185 GB, free: 10.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004241/0.5199, allocations: 4.327 MB / 0.6227 GB, free: 5.191 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006964/0.5269, allocations: 6.538 MB / 0.6291 GB, free: 13.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.338e-05/0.5269, allocations: 24 kB / 0.6291 GB, free: 13.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01076/0.5377, allocations: 6.668 MB / 0.6357 GB, free: 6.664 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.039e-05/0.5378, allocations: 47.94 kB / 0.6357 GB, free: 6.617 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/0.5379, allocations: 92 kB / 0.6358 GB, free: 6.527 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001657/0.5396, allocations: 0.7065 MB / 0.6365 GB, free: 5.809 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003071/0.5427, allocations: 1.076 MB / 0.6375 GB, free: 4.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2154/0.758, allocations: 11.1 MB / 0.6484 GB, free: 145.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/0.7618, allocations: 299.2 kB / 0.6487 GB, free: 145.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000559/0.7624, allocations: 295.8 kB / 0.6489 GB, free: 145.4 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 (590): * Single equations (assignments): 579 * Array equations: 6 * 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.002756/0.7652, allocations: 1.789 MB / 0.6507 GB, free: 144.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.7656, allocations: 286.3 kB / 0.651 GB, free: 144.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006067/0.7717, allocations: 3.497 MB / 0.6544 GB, free: 143.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005618/0.7773, allocations: 3.028 MB / 0.6573 GB, free: 142.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/0.7774, allocations: 11.34 kB / 0.6573 GB, free: 142.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/0.7774, allocations: 14.31 kB / 0.6574 GB, free: 142.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/0.7945, allocations: 10.73 MB / 0.6678 GB, free: 138.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.7945, allocations: 3.875 kB / 0.6678 GB, free: 138.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009077/0.7955, allocations: 272.9 kB / 0.6681 GB, free: 138.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001717/0.7972, allocations: 0.7834 MB / 0.6689 GB, free: 137.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.7973, allocations: 47.33 kB / 0.6689 GB, free: 137.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.8075, allocations: 11.03 MB / 0.6797 GB, free: 130.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005134/0.8127, allocations: 5.776 MB / 0.6853 GB, free: 126.4 MB / 458.7 MB Error: The model contains alias variables with conflicting fixed start values. It is necessary to resolve the conflicts, because otherwise the initial system is impossible to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03744/0.8502, allocations: 31 MB / 0.7156 GB, free: 94.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005509/0.8508, allocations: 364.9 kB / 0.7159 GB, free: 94.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000333/0.8511, allocations: 40 kB / 0.716 GB, free: 94.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.8522, allocations: 119.1 kB / 0.7161 GB, free: 94.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/0.8525, allocations: 165.7 kB / 0.7163 GB, free: 94.22 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.8526, allocations: 68.17 kB / 0.7163 GB, free: 94.15 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002301/0.855, allocations: 1.957 MB / 0.7182 GB, free: 92.19 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.855, allocations: 0 / 0.7182 GB, free: 92.19 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005396/0.8604, allocations: 1.325 MB / 0.7195 GB, free: 90.87 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * 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 (158): * Single equations (assignments): 149 * 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%), (4,12,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005004/0.8609, allocations: 187 kB / 0.7197 GB, free: 90.69 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006529/0.8674, allocations: 4.848 MB / 0.7244 GB, free: 85.79 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.8675, allocations: 0 / 0.7244 GB, free: 85.79 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002768/0.8702, allocations: 2.219 MB / 0.7266 GB, free: 83.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002458/0.8727, allocations: 446.6 kB / 0.727 GB, free: 83.09 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.8875, allocations: 12.57 MB / 0.7393 GB, free: 70.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003251/0.8908, allocations: 3.057 MB / 0.7423 GB, free: 67.27 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003269/0.8941, allocations: 1.413 MB / 0.7437 GB, free: 65.85 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005636/0.8947, allocations: 223.4 kB / 0.7439 GB, free: 65.63 MB / 458.7 MB Notification: Performance of SimCode: time 8.92e-07/0.8947, allocations: 0 / 0.7439 GB, free: 65.63 MB / 458.7 MB Notification: Performance of Templates: time 0.06837/0.9631, allocations: 45.45 MB / 0.7883 GB, free: 20.45 MB / 458.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)